diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-10 22:47:03 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-05-10 22:47:18 -0700 |
| commit | 4126589afef1c3c14cfa5a3a0f43cc6e98569f1d (patch) | |
| tree | 3a6aee67f531c76f2b979f4b81cba5fc53b3fc6e /tests/control_flow.nom | |
| parent | 77c11a2443adb883621b4253d63fe40db048bd85 (diff) | |
Cleanup: removed "File" type trees (now just Block), overhauled
how_do_i.nom, added "result of %" macro, which allowed comprehensions to
be way more concisely defined. Moved len() operator into the nomsu
environment.
Diffstat (limited to 'tests/control_flow.nom')
| -rw-r--r-- | tests/control_flow.nom | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/control_flow.nom b/tests/control_flow.nom index 4ac3d8a..4fed7b4 100644 --- a/tests/control_flow.nom +++ b/tests/control_flow.nom @@ -192,3 +192,11 @@ try assume (%x = 1) or barf "do/then always failed" say "Control flow test passed." + +assume + (..) + result of + %n <- 0 + for all [1,2,3]: %n +<- % + return %n + ..= 6 |
