From 3e89092833a6d407e711fe4ae5f44474ff34cf64 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 1 Jan 2019 17:15:51 -0800 Subject: Some changes to the error API, a fix for statement block parsing, and replacing ((foo 1 baz)'s meaning) with $(foo 1 baz). --- core/coroutines.nom | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'core/coroutines.nom') 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: -- cgit v1.2.3