unlock define-values tests

This commit is contained in:
Yuichi Nishiwaki 2014-06-29 15:08:04 +09:00
parent 2af2362b4f
commit 3c26c289f3
1 changed files with 8 additions and 8 deletions

View File

@ -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!