Update tests/Compiler.test.cpp

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
This commit is contained in:
Petri Häkkinen 2023-11-10 15:51:16 +02:00 committed by GitHub
parent bbe06c00c6
commit d4f6c50f9f
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4503,7 +4503,7 @@ LOADK R0 K0 [1, 2, 3]
RETURN R0 1 RETURN R0 1
)"); )");
CHECK_EQ("\n" + compileFunction("print(Vector3.new(1, 2, 3))", 0, 2, true), R"( CHECK_EQ("\n" + compileFunction("print(Vector3.new(1, 2, 3))", 0, 2, /*enableVectors*/ true), R"(
GETIMPORT R0 1 [print] GETIMPORT R0 1 [print]
LOADK R1 K2 [1, 2, 3] LOADK R1 K2 [1, 2, 3]
CALL R0 1 0 CALL R0 1 0