diff options
Diffstat (limited to '')
| -rw-r--r-- | testes/api.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testes/api.lua b/testes/api.lua index b3791654..9855f541 100644 --- a/testes/api.lua +++ b/testes/api.lua | |||
| @@ -246,7 +246,8 @@ assert(not T.testC("compare LT 1 4, return 1")) | |||
| 246 | assert(not T.testC("compare LE 9 1, return 1")) | 246 | assert(not T.testC("compare LE 9 1, return 1")) |
| 247 | assert(not T.testC("compare EQ 9 9, return 1")) | 247 | assert(not T.testC("compare EQ 9 9, return 1")) |
| 248 | 248 | ||
| 249 | local b = {__lt = function (a,b) return a[1] < b[1] end} | 249 | local b = {__lt = function (a,b) return a[1] < b[1] end, |
| 250 | __le = function (a,b) return a[1] <= b[1] end} | ||
| 250 | local a1,a3,a4 = setmetatable({1}, b), | 251 | local a1,a3,a4 = setmetatable({1}, b), |
| 251 | setmetatable({3}, b), | 252 | setmetatable({3}, b), |
| 252 | setmetatable({4}, b) | 253 | setmetatable({4}, b) |
