mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 14:30:34 +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
|
@ -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