Skip to content

Commit a596dc1

Browse files
committed
tests: rawEqual
1 parent a9102df commit a596dc1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ziglua.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1956,6 +1956,10 @@ test "compare" {
19561956
try expect(!lua.compare(-1, -2, .lt));
19571957
try expect(lua.compare(-2, -1, .le));
19581958
try expect(lua.compare(-2, -1, .lt));
1959+
1960+
try expect(!lua.rawEqual(-1, -2));
1961+
lua.pushNumber(2);
1962+
try expect(lua.rawEqual(-1, -2));
19591963
}
19601964

19611965
test "type of and getting values" {
@@ -2422,7 +2426,6 @@ test "refs" {
24222426
_ = Lua.newThread;
24232427
_ = Lua.newUserdataUV;
24242428
_ = Lua.next;
2425-
_ = Lua.rawEqual;
24262429
_ = Lua.rawGetP;
24272430
_ = Lua.rawSet;
24282431
_ = Lua.rawSetP;

0 commit comments

Comments
 (0)