aboutsummaryrefslogtreecommitdiff
path: root/tests/coroutines.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-20 20:27:15 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-20 20:27:27 -0700
commit6728587dfc6a5f4090f2673113ffedb2be924daf (patch)
tree77591abacd8760bedaa30110570613ef263220fe /tests/coroutines.nom
parentc9df1bc3e881b2ebcf5808a0db7bea29cd07c849 (diff)
Auto-formatted and auto-upgraded everything!
Diffstat (limited to 'tests/coroutines.nom')
-rw-r--r--tests/coroutines.nom10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/coroutines.nom b/tests/coroutines.nom
index a67e1c8..288ba90 100644
--- a/tests/coroutines.nom
+++ b/tests/coroutines.nom
@@ -1,10 +1,16 @@
-#!/usr/bin/env nomsu -V2.4.4.3
+#!/usr/bin/env nomsu -V2.5.4.3
#
Tests for the stuff defined in core/control_flow.nom
use "core"
+
%nums = []
-%co = (coroutine (: -> 4; -> 5; repeat 3 times: -> 6))
+%co = (..)
+ coroutine:
+ -> 4
+ -> 5
+ repeat 3 times: -> 6
+
for % in coroutine %co (add % to %nums)
assume (%nums == [4, 5, 6, 6, 6]) or barf "Coroutine iteration failed"
say "Coroutines test passed." \ No newline at end of file