1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 19:50:24 +02:00

* tests/syntax.test: Added test for unmemoizing internal defines.

This commit is contained in:
Dirk Herrmann 2004-01-23 14:24:37 +00:00
parent 82b6774893
commit a264c013fd
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2004-01-23 Dirk Herrmann <dirk@dirk-herrmanns-seiten.de>
* tests/syntax.test: Added test for unmemoizing internal defines.
2004-01-21 Marius Vollmer <mvo@zagadka.de> 2004-01-21 Marius Vollmer <mvo@zagadka.de>
* tests/srfi-26.test: New. * tests/srfi-26.test: New.

View file

@ -660,6 +660,18 @@
(pass-if-exception "missing body expression" (pass-if-exception "missing body expression"
exception:missing-body-expr exception:missing-body-expr
(eval '(let () (define x #t)) (eval '(let () (define x #t))
(interaction-environment)))
(pass-if "unmemoization"
(eval '(begin
(define (foo)
(define (bar)
'ok)
(bar))
(foo)
(equal?
(procedure-source foo)
'(lambda () (letrec ((bar (lambda () (quote ok)))) (bar)))))
(interaction-environment)))) (interaction-environment))))
(with-test-prefix "set!" (with-test-prefix "set!"