diff options
Diffstat (limited to 'tests/basic.lua')
-rw-r--r-- | tests/basic.lua | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/tests/basic.lua b/tests/basic.lua index 4b4fae6..1cf37e6 100644 --- a/tests/basic.lua +++ b/tests/basic.lua | |||
@@ -63,9 +63,9 @@ tables_match= function( a, b ) | |||
63 | return subtable( a, b ) and subtable( b, a ) | 63 | return subtable( a, b ) and subtable( b, a ) |
64 | end | 64 | end |
65 | 65 | ||
66 | --############################################################## | 66 | -- ################################################################################################## |
67 | --############################################################## | 67 | -- ################################################################################################## |
68 | --############################################################## | 68 | -- ################################################################################################## |
69 | 69 | ||
70 | PRINT( "\n\n", "---=== Tasking (basic) ===---", "\n\n") | 70 | PRINT( "\n\n", "---=== Tasking (basic) ===---", "\n\n") |
71 | 71 | ||
@@ -112,9 +112,9 @@ assert( lane1.status == "done" ) | |||
112 | lane1, lane2 = nil | 112 | lane1, lane2 = nil |
113 | collectgarbage() | 113 | collectgarbage() |
114 | 114 | ||
115 | --############################################################## | 115 | -- ################################################################################################## |
116 | --############################################################## | 116 | -- ################################################################################################## |
117 | --############################################################## | 117 | -- ################################################################################################## |
118 | 118 | ||
119 | PRINT( "\n\n", "---=== Tasking (cancelling) ===---", "\n\n") | 119 | PRINT( "\n\n", "---=== Tasking (cancelling) ===---", "\n\n") |
120 | 120 | ||
@@ -201,9 +201,9 @@ repeat until wait_receive_batched_lane.status == "cancelled" | |||
201 | print "wait_receive_batched_lane is cancelled" | 201 | print "wait_receive_batched_lane is cancelled" |
202 | --################################################]] | 202 | --################################################]] |
203 | 203 | ||
204 | --############################################################## | 204 | -- ################################################################################################## |
205 | --############################################################## | 205 | -- ################################################################################################## |
206 | --############################################################## | 206 | -- ################################################################################################## |
207 | 207 | ||
208 | PRINT( "\n\n", "---=== Communications ===---", "\n\n") | 208 | PRINT( "\n\n", "---=== Communications ===---", "\n\n") |
209 | 209 | ||
@@ -285,9 +285,9 @@ collectgarbage() | |||
285 | WR("waiting 1s") | 285 | WR("waiting 1s") |
286 | linda:receive( 1, "wait") | 286 | linda:receive( 1, "wait") |
287 | 287 | ||
288 | --############################################################## | 288 | -- ################################################################################################## |
289 | --############################################################## | 289 | -- ################################################################################################## |
290 | --############################################################## | 290 | -- ################################################################################################## |
291 | 291 | ||
292 | PRINT( "\n\n", "---=== Stdlib naming ===---", "\n\n") | 292 | PRINT( "\n\n", "---=== Stdlib naming ===---", "\n\n") |
293 | 293 | ||
@@ -341,9 +341,9 @@ end | |||
341 | WR("collectgarbage") | 341 | WR("collectgarbage") |
342 | collectgarbage() | 342 | collectgarbage() |
343 | 343 | ||
344 | --############################################################## | 344 | -- ################################################################################################## |
345 | --############################################################## | 345 | -- ################################################################################################## |
346 | --############################################################## | 346 | -- ################################################################################################## |
347 | 347 | ||
348 | PRINT( "\n\n", "---=== Comms criss cross ===---", "\n\n") | 348 | PRINT( "\n\n", "---=== Comms criss cross ===---", "\n\n") |
349 | 349 | ||
@@ -374,9 +374,9 @@ WR("collectgarbage") | |||
374 | a, b = nil | 374 | a, b = nil |
375 | collectgarbage() | 375 | collectgarbage() |
376 | 376 | ||
377 | --############################################################## | 377 | -- ################################################################################################## |
378 | --############################################################## | 378 | -- ################################################################################################## |
379 | --############################################################## | 379 | -- ################################################################################################## |
380 | 380 | ||
381 | PRINT( "\n\n", "---=== Receive & send of code ===---", "\n\n") | 381 | PRINT( "\n\n", "---=== Receive & send of code ===---", "\n\n") |
382 | 382 | ||
@@ -436,9 +436,9 @@ assert( s2==":)" ) | |||
436 | local k,ok2= linda:receive( "up" ) | 436 | local k,ok2= linda:receive( "up" ) |
437 | assert( ok2 == "ok2" ) | 437 | assert( ok2 == "ok2" ) |
438 | 438 | ||
439 | --############################################################## | 439 | -- ################################################################################################## |
440 | --############################################################## | 440 | -- ################################################################################################## |
441 | --############################################################## | 441 | -- ################################################################################################## |
442 | 442 | ||
443 | PRINT( "\n\n", "---=== :join test ===---", "\n\n") | 443 | PRINT( "\n\n", "---=== :join test ===---", "\n\n") |
444 | 444 | ||