diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2025-08-20 16:10:54 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2025-08-20 16:10:54 -0300 |
| commit | 06c5d3825f03eafc90b56d43f70f70048b785bc8 (patch) | |
| tree | 0b418c4a9ac5a53a6ca39bf258bb046de1fc6749 /testes/api.lua | |
| parent | c345877e4c2588324d9a1e5655e8f48200ba2e5e (diff) | |
| download | lua-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.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) |
