From 4126589afef1c3c14cfa5a3a0f43cc6e98569f1d Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 10 May 2018 22:47:03 -0700 Subject: 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. --- tests/control_flow.nom | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/control_flow.nom') 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 -- cgit v1.2.3