aboutsummaryrefslogtreecommitdiff
path: root/testes/api.lua
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2025-08-20 16:10:54 -0300
committerRoberto I <roberto@inf.puc-rio.br>2025-08-20 16:10:54 -0300
commit06c5d3825f03eafc90b56d43f70f70048b785bc8 (patch)
tree0b418c4a9ac5a53a6ca39bf258bb046de1fc6749 /testes/api.lua
parentc345877e4c2588324d9a1e5655e8f48200ba2e5e (diff)
downloadlua-06c5d3825f03eafc90b56d43f70f70048b785bc8.tar.gz
lua-06c5d3825f03eafc90b56d43f70f70048b785bc8.tar.bz2
lua-06c5d3825f03eafc90b56d43f70f70048b785bc8.zip
Removed code for compatibility with version 5.3
Diffstat (limited to '')
-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)