aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/compat53/tests/test.lua
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/compat53/tests/test.lua')
-rwxr-xr-xvendor/compat53/tests/test.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/compat53/tests/test.lua b/vendor/compat53/tests/test.lua
index 2f6c7f6..c2c0abf 100755
--- a/vendor/compat53/tests/test.lua
+++ b/vendor/compat53/tests/test.lua
@@ -705,6 +705,11 @@ print("tonumber", mod.tonumber("error"))
___''
print("tointeger", mod.tointeger(12))
+print("tointeger", mod.tointeger(-12))
+print("tointeger", mod.tointeger(12.1))
+print("tointeger", mod.tointeger(12.9))
+print("tointeger", mod.tointeger(-12.1))
+print("tointeger", mod.tointeger(-12.9))
print("tointeger", mod.tointeger("12"))
print("tointeger", mod.tointeger("0"))
print("tointeger", mod.tointeger(math.pi))