aboutsummaryrefslogtreecommitdiffstats
path: root/test/lua/int64.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/lua/int64.lua')
-rw-r--r--test/lua/int64.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lua/int64.lua b/test/lua/int64.lua
index 8582485b31..bc405c099b 100644
--- a/test/lua/int64.lua
+++ b/test/lua/int64.lua
@@ -337,6 +337,11 @@ test("min3",z==Int64.min())
test("minmax",Int64.min()== - Int64.max() - 1)
+--Because of g_ascii_strtoll() usage without errno check, "invalid" strings are converted to 0
+testing("invalid string values")
+test("invalid",Int64.new("invalid")== Int64.new(0,0))
+test("invalid2",UInt64.new("invalid")== UInt64.new(0,0))
+
testing("error conditions")
local function divtest(f,s)