fix a bug of `test-values` and unlock the test cases that use `test-values`
This commit is contained in:
parent
12fb80b857
commit
341e4048eb
|
@ -69,9 +69,7 @@
|
||||||
(define-syntax test-values
|
(define-syntax test-values
|
||||||
(syntax-rules ()
|
(syntax-rules ()
|
||||||
((_ expect expr)
|
((_ expect expr)
|
||||||
(test-values #f expect expr))
|
(test (call-with-values (lambda () expect) (lambda results results))
|
||||||
((_ name expect expr)
|
|
||||||
(test name (call-with-values (lambda () expect) (lambda results results))
|
|
||||||
(call-with-values (lambda () expr) (lambda results results))))))
|
(call-with-values (lambda () expr) (lambda results results))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -763,15 +763,15 @@
|
||||||
(test 7 (abs -7))
|
(test 7 (abs -7))
|
||||||
(test 7 (abs 7))
|
(test 7 (abs 7))
|
||||||
|
|
||||||
;; (test-values (values 2 1) (floor/ 5 2))
|
(test-values (values 2 1) (floor/ 5 2))
|
||||||
;; (test-values (values -3 1) (floor/ -5 2))
|
(test-values (values -3 1) (floor/ -5 2))
|
||||||
;; (test-values (values -3 -1) (floor/ 5 -2))
|
(test-values (values -3 -1) (floor/ 5 -2))
|
||||||
;; (test-values (values 2 -1) (floor/ -5 -2))
|
(test-values (values 2 -1) (floor/ -5 -2))
|
||||||
;; (test-values (values 2 1) (truncate/ 5 2))
|
(test-values (values 2 1) (truncate/ 5 2))
|
||||||
;; (test-values (values -2 -1) (truncate/ -5 2))
|
(test-values (values -2 -1) (truncate/ -5 2))
|
||||||
;; (test-values (values -2 1) (truncate/ 5 -2))
|
(test-values (values -2 1) (truncate/ 5 -2))
|
||||||
;; (test-values (values 2 -1) (truncate/ -5 -2))
|
(test-values (values 2 -1) (truncate/ -5 -2))
|
||||||
;; (test-values (values 2.0 -1.0) (truncate/ -5.0 -2))
|
(test-values (values 2.0 -1.0) (truncate/ -5.0 -2))
|
||||||
|
|
||||||
(test 1 (modulo 13 4))
|
(test 1 (modulo 13 4))
|
||||||
(test 1 (remainder 13 4))
|
(test 1 (remainder 13 4))
|
||||||
|
|
Loading…
Reference in New Issue