mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +00:00
46110524ef
Co-authored-by: Rodactor <rodactor@roblox.com>
16 lines
392 B
C++
16 lines
392 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#include "Luau/Error.h"
|
|
|
|
#include "doctest.h"
|
|
|
|
using namespace Luau;
|
|
|
|
TEST_SUITE_BEGIN("ErrorTests");
|
|
|
|
TEST_CASE("TypeError_code_should_return_nonzero_code")
|
|
{
|
|
auto e = TypeError{{{0, 0}, {0, 1}}, UnknownSymbol{"Foo"}};
|
|
CHECK_GE(e.code(), 1000);
|
|
}
|
|
|
|
TEST_SUITE_END();
|