aboutsummaryrefslogtreecommitdiff
path: root/test/arrays.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-03-17 15:28:46 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-03-17 15:28:46 -0400
commitccba8abf731fc9b796cfaee2776cddd516e8775d (patch)
treefacdcd1228044d79fb5fbe6c9a4fad4d51a16723 /test/arrays.tm
parenta0faef71028f78bde11233d76673ce8da2f5f783 (diff)
Add tests for nested comprehensions
Diffstat (limited to 'test/arrays.tm')
-rw-r--r--test/arrays.tm3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/arrays.tm b/test/arrays.tm
index 3f00f186..07a89e19 100644
--- a/test/arrays.tm
+++ b/test/arrays.tm
@@ -57,6 +57,9 @@ if yes
>> [i*10 for i in 5 if i mod 2 != 0]
= [10, 30, 50]
+>> [x for x in y if x > 1 for y in [3, 4, 5] if y < 5]
+= [2, 3, 2, 3, 4]
+
if yes
>> arr := @[10, 20]
>> copy := arr[]