Skip to content

Commit 70bd3c6

Browse files
committed
fix(tests): add Lua 5.5 support to upvalueId test
Include lua55 in the upvalueId error test case (same behavior as lua54).
1 parent d9d32e8 commit 70bd3c6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/tests.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1995,7 +1995,7 @@ test "debug upvalues" {
19951995
_ = try lua.setUpvalue(-2, 1);
19961996

19971997
// test a bad index (the valid one's result is unpredicable)
1998-
if (zlua.lang == .lua54) try expectError(error.LuaError, lua.upvalueId(-1, 2));
1998+
if (zlua.lang == .lua54 or zlua.lang == .lua55) try expectError(error.LuaError, lua.upvalueId(-1, 2));
19991999

20002000
// call the new function (should return 7)
20012001
lua.pushNumber(2);

0 commit comments

Comments
 (0)