mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
Details
Comments, small changes in the manual, an extra test for errors in error handling, small changes in tests.
This commit is contained in:
parent
e5f4927a0b
commit
ceac82f78b
5 changed files with 33 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue