mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 14:00:21 +02:00
* tests/syntax.test: Fixed test that checks for the correct
handling of macros in the context of internal defines.
This commit is contained in:
parent
c4a56a692d
commit
c3d948015a
2 changed files with 14 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-11-15 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* tests/syntax.test: Fixed test that checks for the correct
|
||||
handling of macros in the context of internal defines.
|
||||
|
||||
2003-11-15 Kevin Ryde <user42@zip.com.au>
|
||||
|
||||
* tests/bit-operations.test: Use (test-suite lib), for the benefit of
|
||||
|
|
|
@ -643,14 +643,18 @@
|
|||
(eq? 'c (a 2) (a 5))))
|
||||
(interaction-environment))))
|
||||
|
||||
(expect-fail "internal defines with macro application"
|
||||
(pass-if "internal defines with macro application"
|
||||
(false-if-exception
|
||||
(eval '(begin
|
||||
(defmacro a forms
|
||||
(defmacro my-define forms
|
||||
(cons 'define forms))
|
||||
(let ((c identity) (x #t))
|
||||
(define (a x y) (and x y))
|
||||
(a (c x) (c x))))
|
||||
(let ((a identity) (b identity) (c identity))
|
||||
(define (a x) (if (= x 0) 'a (b (- x 1))))
|
||||
(my-define (b x) (if (= x 0) 'b (c (- x 1))))
|
||||
(define (c x) (if (= x 0) 'c (a (- x 1))))
|
||||
(and (eq? 'a (a 0) (a 3))
|
||||
(eq? 'b (a 1) (a 4))
|
||||
(eq? 'c (a 2) (a 5)))))
|
||||
(interaction-environment))))
|
||||
|
||||
(pass-if-exception "missing body expression"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue