From addac10a47693a976808bf75fe63aed19f8dbb63 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 22 Jul 2018 15:01:05 -0700 Subject: 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. --- tests/control_flow.nom | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tests/control_flow.nom') 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." -- cgit v1.2.3