mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
+, -, min, lcm, gcd now documented
* test-suite/tests/numbers.test: Change some xfail documented? tests to passes.
This commit is contained in:
parent
78d3deb1d4
commit
d389e9661a
1 changed files with 5 additions and 5 deletions
|
@ -1056,7 +1056,7 @@
|
|||
|
||||
(with-test-prefix "gcd"
|
||||
|
||||
(expect-fail "documented?"
|
||||
(pass-if "documented?"
|
||||
(documented? gcd))
|
||||
|
||||
(with-test-prefix "(n)"
|
||||
|
@ -1241,7 +1241,7 @@
|
|||
(with-test-prefix "lcm"
|
||||
;; FIXME: more tests?
|
||||
;; (some of these are already in r4rs.test)
|
||||
(expect-fail (documented? lcm))
|
||||
(pass-if (documented? lcm))
|
||||
(pass-if (= (lcm) 1))
|
||||
(pass-if (= (lcm 32 -36) 288))
|
||||
(let ((big-n 115792089237316195423570985008687907853269984665640564039457584007913129639936) ; 2 ^ 256
|
||||
|
@ -2339,7 +2339,7 @@
|
|||
(big*4 (* fixnum-max 4))
|
||||
(big*5 (* fixnum-max 5)))
|
||||
|
||||
(expect-fail (documented? min))
|
||||
(pass-if (documented? min))
|
||||
(pass-if (= 1 (min 7 3 1 5)))
|
||||
(pass-if (= 1 (min 1 7 3 5)))
|
||||
(pass-if (= 1 (min 7 3 5 1)))
|
||||
|
@ -2435,7 +2435,7 @@
|
|||
|
||||
(with-test-prefix "+"
|
||||
|
||||
(expect-fail "documented?"
|
||||
(pass-if "documented?"
|
||||
(documented? +))
|
||||
|
||||
(with-test-prefix "wrong type argument"
|
||||
|
@ -2524,7 +2524,7 @@
|
|||
|
||||
(with-test-prefix "/"
|
||||
|
||||
(expect-fail "documented?"
|
||||
(pass-if "documented?"
|
||||
(documented? /))
|
||||
|
||||
(with-test-prefix "division by zero"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue