aboutsummaryrefslogtreecommitdiff
path: root/tests/control_flow.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-22 15:01:05 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-22 15:01:05 -0700
commitaddac10a47693a976808bf75fe63aed19f8dbb63 (patch)
treeb072998c987f86eb1ecd381fd36eee0d1e3a6091 /tests/control_flow.nom
parent4fa9757fa27d79a0cda399dcf3b711f4d0d60457 (diff)
Re-autoformatted everything. The main changes are: no longer adding a
newline after 1-line indented code inside blocks, and forcing files to have a trailing newline. The trailing newline thing created a lot of spurious changes.
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."