aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-10-27 08:43:22 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-10-27 08:43:22 +0100
commit5e5bcf37450d07f7f2812255bbd1df35d8e6ce75 (patch)
tree14cac4a19d4e35b60f0a56c948f45b158881daa5 /tests
parent3b4848ca1c4ea40d0e052cdc81bb9f66ce882a8a (diff)
downloadlanes-5e5bcf37450d07f7f2812255bbd1df35d8e6ce75.tar.gz
lanes-5e5bcf37450d07f7f2812255bbd1df35d8e6ce75.tar.bz2
lanes-5e5bcf37450d07f7f2812255bbd1df35d8e6ce75.zip
verbose_errors improvement
* Use std::format instead of sprintf for verbose errors when decoding table keys * Add a unit test for the different table key types
Diffstat (limited to 'tests')
-rw-r--r--tests/lanes_as_upvalue.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lanes_as_upvalue.lua b/tests/lanes_as_upvalue.lua
index beef22e..1c316e4 100644
--- a/tests/lanes_as_upvalue.lua
+++ b/tests/lanes_as_upvalue.lua
@@ -8,4 +8,4 @@ local g = lanes.gen( "*", { name = 'auto', error_trace_level = "extended"}, foo)
8 8
9-- this should raise an error as lanes.timer_lane is a Lane (a non-deep full userdata) 9-- this should raise an error as lanes.timer_lane is a Lane (a non-deep full userdata)
10local res, err = pcall( g) 10local res, err = pcall( g)
11print( "Generating lane yielded: ", tostring( res), tostring( err)) 11assert(res == false and type(err) == "string", "got " .. tostring(res) .. " " .. tostring(err))