aboutsummaryrefslogtreecommitdiff
path: root/tests/collections.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-05-15 20:32:22 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-05-15 20:33:07 -0700
commit3ffeaf1f5dbf3e225dc536066d0fedda3f38ac70 (patch)
treeffd23e911254ad22593a9574b5c255d9bdf578ff /tests/collections.nom
parent0a95a264e5829153eb19bde54882e5c135d6bdad (diff)
Removed "for all"-style iteration and changed "for % from 1 to 10"-style
to "for % in 1 to 10" for consistency.
Diffstat (limited to 'tests/collections.nom')
-rw-r--r--tests/collections.nom6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/collections.nom b/tests/collections.nom
index 60b2d25..04b8a78 100644
--- a/tests/collections.nom
+++ b/tests/collections.nom
@@ -19,10 +19,10 @@ pop from %list
assume ((last in %list) = 5)
remove index 1 from %list
assume ((first in %list) = 2)
-assume (((% * %) for all [1,2,3]) = [1,4,9])
+assume (((% * %) for % in [1,2,3]) = [1,4,9])
assume ((%k = (%v * %v) for %k = %v in {x:1,y:2,z:3}) = {x:1,y:4,z:9})
assume ((%k for %k = %v in {x:1}) = ["x"])
-assume ((% = (% * %) for all [1,2,3]) = {1:1,2:4,3:9})
+assume ((% = (% * %) for % in [1,2,3]) = {1:1,2:4,3:9})
assume (([[1,2],[3,4]] flattened) = [1,2,3,4])
assume ((entries in {x:1}) = [{key:"x",value:1}])
assume ((keys in {x:1}) = ["x"])
@@ -38,7 +38,7 @@ sort %x by (% in %keys)
assume (%x = [2,3,1])
assume ((unique [1,2,1,3,2,3]) = [1,2,3])
%c <- (new counter)
-for all ["x","y","x","x","y"]
+for % in ["x","y","x","x","y"]
(% in %c) +<- 1
assume (%c = {x:3,y:2})