Skip to content

Commit 5b0c0d1

Browse files
committed
Added test case from Issue justinethier#162
1 parent 3030227 commit 5b0c0d1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/162.sld

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
(define-library (162)
2+
(export foo)
3+
(import (scheme base))
4+
(begin
5+
(define-syntax bar
6+
(syntax-rules ()
7+
((_)
8+
'baz)))
9+
(define-syntax foo
10+
(syntax-rules ()
11+
((_)
12+
(bar))))))

tests/t-macro.scm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,5 +504,7 @@
504504
(assert/equal (foo A) "A or B or C")
505505
; END 163
506506

507+
(import (162))
508+
(assert/equal (foo) 'baz)
507509

508510
(unit-test-handler-results)

0 commit comments

Comments
 (0)