aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-03-05 10:34:27 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2025-03-05 10:34:27 +0100
commit723476a90cccc611f9c80f812f0b96541fab326e (patch)
tree4ac6aea7b34f827db2c4dda20e19f5ff97ea107d /tests
parent887fc613dd943d1221d5a2a3b96cee37c0d81248 (diff)
downloadlanes-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.lua4
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 @@
1local lanes = require "lanes".configure{nb_user_keepers = 100, on_state_create = function() end} 1local lanes = require "lanes".configure{nb_user_keepers = 100, on_state_create = function() end}
2 2
3local SLEEP = function(...) 3local 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")
6end 6end
7 7
8print("Name of table: ", lanes.nameof({})) 8print("Name of table: ", lanes.nameof({}))