Browse files

Add a test file with lots of coroutines

  • Loading branch information...
1 parent df95bee commit 5521efc372f407e3252439d8089e3208a2f3b43b @tadzik committed Dec 4, 2012
Showing with 27 additions and 0 deletions.
  1. +27 −0 t/02-lots-and-lots-and-lots-of-them.t
View
27 t/02-lots-and-lots-and-lots-of-them.t
@@ -0,0 +1,27 @@
+use Coroutines;
+use Test;
+plan 1;
+
+my @results;
+
+async {
+ @results.push: 1;
+ yield;
+ @results.push: 4;
+};
+
+async {
+ @results.push: 2;
+ yield;
+ @results.push: 5;
+};
+
+async {
+ @results.push: 3;
+ yield;
+ @results.push: 6;
+};
+
+schedule for 1..10;
+
+is @results.join(','), '1,2,3,4,5,6', 'yay, correct order';

0 comments on commit 5521efc

Please sign in to comment.