aboutsummaryrefslogtreecommitdiff
path: root/tests/test.lua
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2015-01-20 01:02:20 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2015-01-20 01:02:20 +0100
commit489cd678823e0981ff2e4d2544b84094ed23c587 (patch)
tree2855dbabb9205957434129aa1119cb526d2ae01b /tests/test.lua
parentf7f85b0826f7006b8dcc040111cd0ef8d42c2352 (diff)
downloadlua-compat-5.3-489cd678823e0981ff2e4d2544b84094ed23c587.tar.gz
lua-compat-5.3-489cd678823e0981ff2e4d2544b84094ed23c587.tar.bz2
lua-compat-5.3-489cd678823e0981ff2e4d2544b84094ed23c587.zip
add lua_arith and lua_compare for Lua 5.1
Diffstat (limited to 'tests/test.lua')
-rwxr-xr-xtests/test.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test.lua b/tests/test.lua
index b59fd94..2b53b92 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -314,6 +314,15 @@ ___''
314print(mod.absindex("hi", true)) 314print(mod.absindex("hi", true))
315 315
316___'' 316___''
317print(mod.arith(2, 1))
318print(mod.arith(3, 5))
319
320___''
321print(mod.compare(1, 1))
322print(mod.compare(2, 1))
323print(mod.compare(1, 2))
324
325___''
317print(mod.tolstring("string")) 326print(mod.tolstring("string"))
318local t = setmetatable({}, { 327local t = setmetatable({}, {
319 __tostring = function(v) return "mytable" end 328 __tostring = function(v) return "mytable" end