mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-28 14:00:31 +02:00
Changes from arch/CVS synchronization
This commit is contained in:
parent
817de81ca1
commit
2b86affe0b
6 changed files with 57 additions and 18 deletions
|
@ -1,3 +1,10 @@
|
|||
2007-07-25 Ludovic Courtès <ludo@gnu.org>
|
||||
|
||||
* tests/srfi-17.test (%some-variable): New.
|
||||
(set!)[target uses macro]: New test prefix. The
|
||||
"(set! (@@ ...) 1)" test is in accordance with Marius Vollmer's
|
||||
change in `libguile' dated 2003-11-17.
|
||||
|
||||
2007-07-18 Stephen Compall <s11@member.fsf.org>
|
||||
|
||||
* tests/syntax.test: Add SRFI-61 `cond' tests.
|
||||
|
|
|
@ -48,6 +48,8 @@
|
|||
;; set!
|
||||
;;
|
||||
|
||||
(define %some-variable #f)
|
||||
|
||||
(with-test-prefix "set!"
|
||||
|
||||
(with-test-prefix "target is not procedure with setter"
|
||||
|
@ -58,7 +60,20 @@
|
|||
|
||||
(pass-if-exception "(set! '#f 1)"
|
||||
exception:bad-variable
|
||||
(eval '(set! '#f 1) (interaction-environment)))))
|
||||
(eval '(set! '#f 1) (interaction-environment))))
|
||||
|
||||
(with-test-prefix "target uses macro"
|
||||
|
||||
(pass-if "(set! (@@ ...) 1)"
|
||||
(eval '(set! (@@ (test-suite test-srfi-17) %some-variable) 1)
|
||||
(interaction-environment))
|
||||
(equal? %some-variable 1))
|
||||
|
||||
;; The `(quote x)' below used to be memoized as an infinite list before
|
||||
;; Guile 1.8.3.
|
||||
(pass-if-exception "(set! 'x 1)"
|
||||
exception:bad-variable
|
||||
(eval '(set! 'x 1) (interaction-environment)))))
|
||||
|
||||
;;
|
||||
;; setter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue