diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 15:28:46 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-03-17 15:28:46 -0400 |
| commit | ccba8abf731fc9b796cfaee2776cddd516e8775d (patch) | |
| tree | facdcd1228044d79fb5fbe6c9a4fad4d51a16723 /test/tables.tm | |
| parent | a0faef71028f78bde11233d76673ce8da2f5f783 (diff) | |
Add tests for nested comprehensions
Diffstat (limited to 'test/tables.tm')
| -rw-r--r-- | test/tables.tm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/tables.tm b/test/tables.tm index 27b176bf..53e81d48 100644 --- a/test/tables.tm +++ b/test/tables.tm @@ -54,3 +54,5 @@ for k,v in t2 = {1=>10, 2=>20, 3=>30, 4=>40, 5=>50} >> {i=>10*i for i in 5 if i mod 2 != 0} = {1=>10, 3=>30, 5=>50} +>> {x=>10*x for x in y if x > 1 for y in [3, 4, 5] if y < 5} += {2=>20, 3=>30, 4=>40} |
