1
0
Fork 0
mirror of https://github.com/luau-lang/luau.git synced 2025-04-13 07:10:54 +01:00
This commit is contained in:
Andy Friesen 2023-07-07 12:41:34 -07:00
parent b92d4d7d99
commit dc2a1cc12c

View file

@ -28,7 +28,7 @@ TEST_CASE_FIXTURE(Fixture, "equal_numbers")
DifferResult diffRes = diff(foo, almostFoo); DifferResult diffRes = diff(foo, almostFoo);
CHECK(!diffRes.diffError.has_value()); CHECK(!diffRes.diffError.has_value());
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -51,7 +51,7 @@ TEST_CASE_FIXTURE(Fixture, "equal_strings")
DifferResult diffRes = diff(foo, almostFoo); DifferResult diffRes = diff(foo, almostFoo);
CHECK(!diffRes.diffError.has_value()); CHECK(!diffRes.diffError.has_value());
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -74,7 +74,7 @@ TEST_CASE_FIXTURE(Fixture, "equal_tables")
DifferResult diffRes = diff(foo, almostFoo); DifferResult diffRes = diff(foo, almostFoo);
CHECK(!diffRes.diffError.has_value()); CHECK(!diffRes.diffError.has_value());
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -97,7 +97,7 @@ TEST_CASE_FIXTURE(Fixture, "a_table_missing_property")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -123,7 +123,7 @@ TEST_CASE_FIXTURE(Fixture, "left_table_missing_property")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -149,7 +149,7 @@ TEST_CASE_FIXTURE(Fixture, "a_table_wrong_type")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -175,7 +175,7 @@ TEST_CASE_FIXTURE(Fixture, "a_table_wrong_type")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -201,7 +201,7 @@ TEST_CASE_FIXTURE(Fixture, "a_nested_table_wrong_type")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -227,7 +227,7 @@ TEST_CASE_FIXTURE(Fixture, "a_nested_table_wrong_match")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -253,7 +253,7 @@ TEST_CASE_FIXTURE(Fixture, "singleton")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -280,7 +280,7 @@ TEST_CASE_FIXTURE(Fixture, "equal_singleton")
INFO(diffRes.diffError->toString()); INFO(diffRes.diffError->toString());
CHECK(!diffRes.diffError.has_value()); CHECK(!diffRes.diffError.has_value());
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);
@ -303,7 +303,7 @@ TEST_CASE_FIXTURE(Fixture, "singleton_string")
{ {
diffMessage = diff(foo, almostFoo).diffError->toString(); diffMessage = diff(foo, almostFoo).diffError->toString();
} }
catch (InternalCompilerError e) catch (const InternalCompilerError& e)
{ {
INFO(("InternalCompilerError: " + e.message)); INFO(("InternalCompilerError: " + e.message));
CHECK(false); CHECK(false);