aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Germain <bnt.germain@gmail.com>2012-12-17 12:02:33 +0100
committerBenoit Germain <bnt.germain@gmail.com>2012-12-17 12:02:33 +0100
commit944c38c5b4932e692caedbf431eff1b7e1c8ca13 (patch)
tree767d44d4c2507438f012726ab8e674ff1038cbeb /tests
parent6763dcaf19783bf2c877dd9707917c65eaf53dfe (diff)
downloadlanes-944c38c5b4932e692caedbf431eff1b7e1c8ca13.tar.gz
lanes-944c38c5b4932e692caedbf431eff1b7e1c8ca13.tar.bz2
lanes-944c38c5b4932e692caedbf431eff1b7e1c8ca13.zip
Update tests/timer.lua
Diffstat (limited to 'tests')
-rw-r--r--tests/timer.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/timer.lua b/tests/timer.lua
index 84e6dec..953e4ed 100644
--- a/tests/timer.lua
+++ b/tests/timer.lua
@@ -76,6 +76,15 @@ end
76assert( caught[T1] ) 76assert( caught[T1] )
77assert( caught[T2] ) 77assert( caught[T2] )
78 78
79
80PRINT( "\n*** Listing timers ***\n" )
81local r = lanes.timers() -- list of {linda, key, {}}
82for _,t in ipairs( r) do
83 local linda, key, timer = t[1], t[2], t[3]
84 print( tostring( linda), key, timer[1], timer[2])
85end
86
87
79PRINT( "\n*** Clearing timers ***\n" ) 88PRINT( "\n*** Clearing timers ***\n" )
80 89
81lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks 90lanes.timer( linda, T1, 0 ) -- reset; no reoccuring ticks