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