unlock define-values tests
This commit is contained in:
parent
2af2362b4f
commit
3c26c289f3
|
@ -520,10 +520,10 @@
|
|||
(let ()
|
||||
(define-values (x) (values 1))
|
||||
x))
|
||||
;; (test 3
|
||||
;; (let ()
|
||||
;; (define-values x (values 1 2))
|
||||
;; (apply + x)))
|
||||
(test 3
|
||||
(let ()
|
||||
(define-values x (values 1 2))
|
||||
(apply + x)))
|
||||
(test 3
|
||||
(let ()
|
||||
(define-values (x y) (values 1 2))
|
||||
|
@ -532,10 +532,10 @@
|
|||
(let ()
|
||||
(define-values (x y z) (values 1 2 3))
|
||||
(+ x y z)))
|
||||
;; (test 10
|
||||
;; (let ()
|
||||
;; (define-values (x y . z) (values 1 2 3 4))
|
||||
;; (+ x y (car z) (cadr z))))
|
||||
(test 10
|
||||
(let ()
|
||||
(define-values (x y . z) (values 1 2 3 4))
|
||||
(+ x y (car z) (cadr z))))
|
||||
|
||||
(test '(2 1) (let ((x 1) (y 2))
|
||||
(define-syntax swap!
|
||||
|
|
Loading…
Reference in New Issue