diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-02-26 11:29:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-02-26 11:29:54 -0300 |
commit | ceac82f78be8baeddfa8536472d8b08df2eb7d49 (patch) | |
tree | 033247e2a23b2c3fd832101ba3fc8a73c3313127 /testes/sort.lua | |
parent | e5f4927a0b97015d4c22bc22fbf80fb2c11ca7cc (diff) | |
download | lua-ceac82f78be8baeddfa8536472d8b08df2eb7d49.tar.gz lua-ceac82f78be8baeddfa8536472d8b08df2eb7d49.tar.bz2 lua-ceac82f78be8baeddfa8536472d8b08df2eb7d49.zip |
Details
Comments, small changes in the manual, an extra test for errors in
error handling, small changes in tests.
Diffstat (limited to 'testes/sort.lua')
-rw-r--r-- | testes/sort.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testes/sort.lua b/testes/sort.lua index 965e1534..290b199e 100644 --- a/testes/sort.lua +++ b/testes/sort.lua | |||
@@ -199,7 +199,7 @@ do | |||
199 | __index = function (_,k) pos1 = k end, | 199 | __index = function (_,k) pos1 = k end, |
200 | __newindex = function (_,k) pos2 = k; error() end, }) | 200 | __newindex = function (_,k) pos2 = k; error() end, }) |
201 | local st, msg = pcall(table.move, a, f, e, t) | 201 | local st, msg = pcall(table.move, a, f, e, t) |
202 | assert(not st and not msg and pos1 == x and pos2 == y) | 202 | assert(not st and pos1 == x and pos2 == y) |
203 | end | 203 | end |
204 | checkmove(1, maxI, 0, 1, 0) | 204 | checkmove(1, maxI, 0, 1, 0) |
205 | checkmove(0, maxI - 1, 1, maxI - 1, maxI) | 205 | checkmove(0, maxI - 1, 1, maxI - 1, maxI) |