aboutsummaryrefslogtreecommitdiff
path: root/tests/timer.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/timer.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/timer.lua b/tests/timer.lua
index 4da1a50..ac8b385 100644
--- a/tests/timer.lua
+++ b/tests/timer.lua
@@ -94,8 +94,11 @@ lanes.timer( linda, T2, 0 )
94linda:receive( 0, T1 ) -- clear out; there could be one tick left 94linda:receive( 0, T1 ) -- clear out; there could be one tick left
95linda:receive( 0, T2 ) 95linda:receive( 0, T2 )
96 96
97assert( linda:get(T1) == nil ) 97local _count, _val = linda:get(T1)
98assert( linda:get(T2) == nil ) 98assert(_count == 0 and _val == nil)
99
100local _count, _val = linda:get(T2)
101assert(_count == 0 and _val == nil)
99 102
100PRINT "...making sure no ticks are coming..." 103PRINT "...making sure no ticks are coming..."
101 104