aboutsummaryrefslogtreecommitdiff
path: root/tests/control_flow.nom
diff options
context:
space:
mode:
Diffstat (limited to 'tests/control_flow.nom')
-rw-r--r--tests/control_flow.nom6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/control_flow.nom b/tests/control_flow.nom
index 7a6a743..72adc5a 100644
--- a/tests/control_flow.nom
+++ b/tests/control_flow.nom
@@ -9,10 +9,8 @@ action [test conditionals]:
if (yes): %loc1 = (yes)
if (no):
barf "entered if 'no' conditional"
-
unless (yes):
barf "entered unless 'yes' conditional"
-
if (yes): %loc2 = (yes)
..else:
barf "entered if 'yes' else conditional"
@@ -125,7 +123,6 @@ if:
(no): barf "'when' fail"
(no) (3 > 4):
barf "'when' fail 2"
-
(yes) (barfer): do nothing
(99 > 1):
barf "Fell through incorrectly"
@@ -146,7 +143,6 @@ assume (not %leaked) or barf "'when' is leaking locals"
if 4 is:
1 2:
barf "'when = ?' fail"
-
3 4 (barfer):
%when_worked = (yes)
@@ -177,4 +173,4 @@ for % in recursive %t:
..else: add % to %flat
assume ((sorted %flat) == [1, 2, 3, 4, 5, 6])
-say "Control flow test passed." \ No newline at end of file
+say "Control flow test passed."