Comments, small changes in the manual, an extra test for errors in
error handling, small changes in tests.
This commit is contained in:
Roberto Ierusalimschy
2025-02-26 11:29:54 -03:00
parent e5f4927a0b
commit ceac82f78b
5 changed files with 33 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ do
__index = function (_,k) pos1 = k end,
__newindex = function (_,k) pos2 = k; error() end, })
local st, msg = pcall(table.move, a, f, e, t)
assert(not st and not msg and pos1 == x and pos2 == y)
assert(not st and pos1 == x and pos2 == y)
end
checkmove(1, maxI, 0, 1, 0)
checkmove(0, maxI - 1, 1, maxI - 1, maxI)