aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
Diffstat (limited to 'testes')
-rw-r--r--testes/api.lua3
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"))
246assert(not T.testC("compare LE 9 1, return 1")) 246assert(not T.testC("compare LE 9 1, return 1"))
247assert(not T.testC("compare EQ 9 9, return 1")) 247assert(not T.testC("compare EQ 9 9, return 1"))
248 248
249local b = {__lt = function (a,b) return a[1] < b[1] end} 249local b = {__lt = function (a,b) return a[1] < b[1] end,
250 __le = function (a,b) return a[1] <= b[1] end}
250local a1,a3,a4 = setmetatable({1}, b), 251local a1,a3,a4 = setmetatable({1}, b),
251 setmetatable({3}, b), 252 setmetatable({3}, b),
252 setmetatable({4}, b) 253 setmetatable({4}, b)