diff --git a/tests/Compiler.test.cpp b/tests/Compiler.test.cpp index a594ce90..76fe0207 100644 --- a/tests/Compiler.test.cpp +++ b/tests/Compiler.test.cpp @@ -4501,6 +4501,12 @@ GETIMPORT R0 1 [print] LOADK R1 K2 [1, 2, 3, 4] CALL R0 1 0 RETURN R0 0 +)"); + + CHECK_EQ("\n" + compileFunction("return Vector3.new(0, 0, 0), Vector3.new(-0, 0, 0)", 0, 2, /*enableVectors*/ true), R"( +LOADK R0 K0 [0, 0, 0] +LOADK R1 K1 [-0, 0, 0] +RETURN R0 2 )"); }