mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Fix incorrect rationalize tests.
* test-suite/tests/fractions.test (fractions): Fix rationalize tests.
This commit is contained in:
parent
d9e7774fda
commit
eba5c07715
1 changed files with 2 additions and 2 deletions
|
@ -150,7 +150,7 @@
|
|||
(testeqv (inexact->exact (exact->inexact 2135445/16777216)) 2135445/16777216)
|
||||
(testeq (< (- (exact->inexact 10197734562406803221/17452826108659293487)
|
||||
.584302765576009) .0000001) #t)
|
||||
(testeqv (rationalize #e0.76 1/10) 3/4)
|
||||
(testeqv (rationalize #e0.76 1/10) 2/3)
|
||||
(testeqv (rationalize #e0.723 1/10) 2/3)
|
||||
(testeqv (rationalize #e0.723 1/100) 5/7)
|
||||
(testeqv (rationalize #e-0.723 1/100) -5/7)
|
||||
|
@ -351,7 +351,7 @@
|
|||
(test= (- 0+6i 1/4 0.5 7) -7.75+6.0i)
|
||||
(testeqv (rationalize #e2.5 1/1000) 5/2)
|
||||
(testeqv (rationalize 7/3 1/1000) 7/3)
|
||||
(testeqv (rationalize #e3.14159265 1/10) 22/7)
|
||||
(testeqv (rationalize #e3.14159265 1/10) 16/5)
|
||||
(testeqv (numerator (/ 8 -6)) -4)
|
||||
(testeqv (denominator (/ 8 -6)) 3)
|
||||
(testeqv (gcd (numerator 7/9) (denominator 7/9)) 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue