diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-09-27 16:26:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-09-27 16:26:13 -0700 |
commit | 8b00d2d1919c204ff653863ff0485f483d418ff4 (patch) | |
tree | e1d420705af2e4abe78906d3c21f7d93e60bfcb3 /tests | |
parent | b2d56ff8790154fefefcc40e7b3c84ab97559938 (diff) | |
download | txr-8b00d2d1919c204ff653863ff0485f483d418ff4.tar.gz txr-8b00d2d1919c204ff653863ff0485f483d418ff4.tar.bz2 txr-8b00d2d1919c204ff653863ff0485f483d418ff4.zip |
More tests for ifa/conda.
* tests/012/ifa.tl: New test cases which test the expansion
when the it-form is a place and there are forms before
and after it.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/012/ifa.tl | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/012/ifa.tl b/tests/012/ifa.tl index 214f752b..91fa4512 100644 --- a/tests/012/ifa.tl +++ b/tests/012/ifa.tl @@ -42,3 +42,18 @@ (inc it)) l) (1 3 3)) + +(test (let ((l (list 1 2 3 4 5))) + (conda + ((< 2 (third l) 4) + (inc it))) + l) + (1 2 4 4 5)) + +(test (let* ((x 2) (y 4) + (l (list 1 2 3 4 5))) + (conda + ((< x (third l) y) + (inc it))) + l) + (1 2 4 4 5)) |