mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
tests which expect an inexact value can accept an equivalent exact value
This commit is contained in:
parent
f0c9f0e705
commit
933aeb5654
1 changed files with 3 additions and 1 deletions
|
@ -664,7 +664,9 @@
|
|||
(if (real? expect)
|
||||
(and (inexact? expect)
|
||||
(real? res)
|
||||
(inexact? res)
|
||||
;; tests which expect an inexact value can
|
||||
;; accept an equivalent exact value
|
||||
;; (inexact? res)
|
||||
(approx-equal? expect res (current-test-epsilon)))
|
||||
(and (complex? res)
|
||||
(complex? expect)
|
||||
|
|
Loading…
Add table
Reference in a new issue