diff options
author | Benoit Germain <bnt.germain@gmail.com> | 2018-11-19 09:16:49 +0100 |
---|---|---|
committer | Benoit Germain <bnt.germain@gmail.com> | 2018-11-19 09:16:49 +0100 |
commit | 7b4f59c5ebc84e426e2876906b24d7dd73342f07 (patch) | |
tree | f05748fc2d75c43c25865be01677271fff5d86e4 /tests | |
parent | 01f83215a2ad235fbf306f591c6c0547b1bb7047 (diff) | |
download | lanes-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.lua | 6 |
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() | |||
154 | limited:limit( "key", 1) | 154 | limited:limit( "key", 1) |
155 | -- [[################################################ | 155 | -- [[################################################ |
156 | limited:send( "key", "hello") -- saturate linda | 156 | limited:send( "key", "hello") -- saturate linda |
157 | for k, v in pairs( limited:dump()) do | ||
158 | PRINT("limited[" .. tostring( k) .. "] = " .. tostring( v)) | ||
159 | end | ||
157 | local wait_send = function() | 160 | local 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) |
463 | end | 466 | end |
464 | 467 | ||
468 | local nameof_type, nameof_name = lanes.nameof( print) | ||
469 | PRINT( "name of " .. nameof_type .. " print = '" .. nameof_name .. "'") | ||
470 | |||
465 | -- | 471 | -- |
466 | io.stderr:write "Done! :)\n" | 472 | io.stderr:write "Done! :)\n" |