mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Enable LuauVectorLiterals flag for unit test
This commit is contained in:
parent
abaef3f9c8
commit
abc856d7e8
1 changed files with 2 additions and 0 deletions
|
@ -4496,6 +4496,8 @@ L0: RETURN R0 -1
|
||||||
|
|
||||||
TEST_CASE("VectorLiterals")
|
TEST_CASE("VectorLiterals")
|
||||||
{
|
{
|
||||||
|
ScopedFastFlag sff("LuauVectorLiterals", true);
|
||||||
|
|
||||||
CHECK_EQ("\n" + compileFunction("return Vector3.new(1, 2, 3)", 0, 2, true), R"(
|
CHECK_EQ("\n" + compileFunction("return Vector3.new(1, 2, 3)", 0, 2, true), R"(
|
||||||
LOADK R0 K0 [1, 2, 3]
|
LOADK R0 K0 [1, 2, 3]
|
||||||
RETURN R0 1
|
RETURN R0 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue