mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
Default test comparator should require same exactness.
This commit is contained in:
parent
3704289138
commit
bb00cdaf1b
1 changed files with 1 additions and 0 deletions
|
@ -671,6 +671,7 @@
|
||||||
(if (real? expect)
|
(if (real? expect)
|
||||||
(and (inexact? expect)
|
(and (inexact? expect)
|
||||||
(real? res)
|
(real? res)
|
||||||
|
(inexact? res)
|
||||||
(approx-equal? expect res (current-test-epsilon)))
|
(approx-equal? expect res (current-test-epsilon)))
|
||||||
(and (complex? res)
|
(and (complex? res)
|
||||||
(complex? expect)
|
(complex? expect)
|
||||||
|
|
Loading…
Add table
Reference in a new issue