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