summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-09-27 16:26:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-09-27 16:26:13 -0700
commit8b00d2d1919c204ff653863ff0485f483d418ff4 (patch)
treee1d420705af2e4abe78906d3c21f7d93e60bfcb3 /tests
parentb2d56ff8790154fefefcc40e7b3c84ab97559938 (diff)
downloadtxr-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.tl15
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))