aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2018-11-19 09:16:49 +0100
committerBenoit Germain <bnt.germain@gmail.com>2018-11-19 09:16:49 +0100
commit7b4f59c5ebc84e426e2876906b24d7dd73342f07 (patch)
treef05748fc2d75c43c25865be01677271fff5d86e4 /tests
parent01f83215a2ad235fbf306f591c6c0547b1bb7047 (diff)
downloadlanes-7b4f59c5ebc84e426e2876906b24d7dd73342f07.tar.gz
lanes-7b4f59c5ebc84e426e2876906b24d7dd73342f07.tar.bz2
lanes-7b4f59c5ebc84e426e2876906b24d7dd73342f07.zip
Internal code tweaks
* Registry access code utility macros * CONFIG_REGKEY and LOOKUP_REGKEY are now lightuserdata instead of strings * Stack checking debug macros improvements
Diffstat (limited to 'tests')
-rw-r--r--tests/basic.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basic.lua b/tests/basic.lua
index c36088a..7d42ad5 100644
--- a/tests/basic.lua
+++ b/tests/basic.lua
@@ -154,6 +154,9 @@ local limited = lanes.linda()
154limited:limit( "key", 1) 154limited:limit( "key", 1)
155-- [[################################################ 155-- [[################################################
156limited:send( "key", "hello") -- saturate linda 156limited:send( "key", "hello") -- saturate linda
157for k, v in pairs( limited:dump()) do
158 PRINT("limited[" .. tostring( k) .. "] = " .. tostring( v))
159end
157local wait_send = function() 160local wait_send = function()
158 local a,b 161 local a,b
159 set_finalizer( function() print( "wait_send", a, b) end) 162 set_finalizer( function() print( "wait_send", a, b) end)
@@ -462,5 +465,8 @@ else
462 assert(d==nil) 465 assert(d==nil)
463end 466end
464 467
468local nameof_type, nameof_name = lanes.nameof( print)
469PRINT( "name of " .. nameof_type .. " print = '" .. nameof_name .. "'")
470
465-- 471--
466io.stderr:write "Done! :)\n" 472io.stderr:write "Done! :)\n"