mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Add unit test for pos/neg zero
This commit is contained in:
parent
4ac321504d
commit
16badbbbdc
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue