diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-05 10:34:27 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-05 10:34:27 +0100 |
commit | 723476a90cccc611f9c80f812f0b96541fab326e (patch) | |
tree | 4ac6aea7b34f827db2c4dda20e19f5ff97ea107d /tests | |
parent | 887fc613dd943d1221d5a2a3b96cee37c0d81248 (diff) | |
download | lanes-723476a90cccc611f9c80f812f0b96541fab326e.tar.gz lanes-723476a90cccc611f9c80f812f0b96541fab326e.tar.bz2 lanes-723476a90cccc611f9c80f812f0b96541fab326e.zip |
lanes.nameof internal code refacto + a few unit tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/nameof.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/nameof.lua b/tests/nameof.lua index f48a971..1abcf3d 100644 --- a/tests/nameof.lua +++ b/tests/nameof.lua | |||
@@ -1,8 +1,8 @@ | |||
1 | local lanes = require "lanes".configure{nb_user_keepers = 100, on_state_create = function() end} | 1 | local lanes = require "lanes".configure{nb_user_keepers = 100, on_state_create = function() end} |
2 | 2 | ||
3 | local SLEEP = function(...) | 3 | local SLEEP = function(...) |
4 | local k, v = lanes.sleep(...) | 4 | local k, v = lanes.sleep(...) |
5 | assert(k == nil and v == "timeout") | 5 | assert(k == nil and v == "timeout") |
6 | end | 6 | end |
7 | 7 | ||
8 | print("Name of table: ", lanes.nameof({})) | 8 | print("Name of table: ", lanes.nameof({})) |