aboutsummaryrefslogtreecommitdiff
path: root/core/coroutines.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2019-01-01 17:15:51 -0800
committerBruce Hill <bruce@bruce-hill.com>2019-01-01 17:17:23 -0800
commit3e89092833a6d407e711fe4ae5f44474ff34cf64 (patch)
tree5ffe2df86f648b604347b59999992d74f71a796c /core/coroutines.nom
parente68eb04d690454428216a0f0f1b11399feeb7dc1 (diff)
Some changes to the error API, a fix for statement block parsing, and
replacing ((foo 1 baz)'s meaning) with $(foo 1 baz).
Diffstat (limited to 'core/coroutines.nom')
-rw-r--r--core/coroutines.nom7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/coroutines.nom b/core/coroutines.nom
index 1a164a9..4b4639a 100644
--- a/core/coroutines.nom
+++ b/core/coroutines.nom
@@ -1,4 +1,4 @@
-#!/usr/bin/env nomsu -V6.13.12.8
+#!/usr/bin/env nomsu -V6.14
#
This file defines the code that creates and manipulates coroutines
@@ -18,7 +18,10 @@ test:
$nums = []
for $ in coroutine $co:
$nums, add $
- assume ($nums == [4, 5, 6, 6, 6]) or barf "Coroutine iteration failed"
+
+ unless ($nums == [4, 5, 6, 6, 6]):
+ fail "Coroutine iteration failed"
+
$d = {.x = 0}
$co2 =
coroutine: