diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-10-27 08:43:22 +0100 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-10-27 08:43:22 +0100 |
| commit | 5e5bcf37450d07f7f2812255bbd1df35d8e6ce75 (patch) | |
| tree | 14cac4a19d4e35b60f0a56c948f45b158881daa5 /tests | |
| parent | 3b4848ca1c4ea40d0e052cdc81bb9f66ce882a8a (diff) | |
| download | lanes-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.lua | 2 |
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) |
| 10 | local res, err = pcall( g) | 10 | local res, err = pcall( g) |
| 11 | print( "Generating lane yielded: ", tostring( res), tostring( err)) | 11 | assert(res == false and type(err) == "string", "got " .. tostring(res) .. " " .. tostring(err)) |
