diff options
Diffstat (limited to 'tests/basic.lua')
-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" |