summaryrefslogtreecommitdiffstats
path: root/tests/011
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-02-07 07:38:02 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-02-07 07:38:02 -0800
commit9eecb672352ec0d5038f35cb24c0ccad950a9507 (patch)
treec7aa031d39edba7c51e3d6a93f8654b77348db7e /tests/011
parent61302673d5870dc3eae32ba0e1c60d2d9f6aef21 (diff)
downloadtxr-9eecb672352ec0d5038f35cb24c0ccad950a9507.tar.gz
txr-9eecb672352ec0d5038f35cb24c0ccad950a9507.tar.bz2
txr-9eecb672352ec0d5038f35cb24c0ccad950a9507.zip
* tests/011/macros-1.txr: Add test for lexical function
shadowing symbol macro. * tests/011/macros-1.expected: Updated.
Diffstat (limited to 'tests/011')
-rw-r--r--tests/011/macros-1.expected1
-rw-r--r--tests/011/macros-1.txr6
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/011/macros-1.expected b/tests/011/macros-1.expected
index 66039383..67fd82eb 100644
--- a/tests/011/macros-1.expected
+++ b/tests/011/macros-1.expected
@@ -1,2 +1,3 @@
((42) (a))
+(1)
((1 1) (2 3))
diff --git a/tests/011/macros-1.txr b/tests/011/macros-1.txr
index 35b9d472..946cbf2e 100644
--- a/tests/011/macros-1.txr
+++ b/tests/011/macros-1.txr
@@ -13,6 +13,12 @@
(list (rem-num (foo)) (rem-num x)))))
(prinl
+ (let ((x 0) (y 1))
+ (symacrolet ((a x) (b y))
+ (flet ((x (. args) [apply list args]))
+ [x y]))))
+
+ (prinl
(let ((x 0))
(symacrolet ((a (inc x)))
(list