mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 22:59:16 +02:00
Fixing bug in test-equal? returning numeric results for non-real expects.
This commit is contained in:
parent
98863f53cb
commit
d6c20873e4
1 changed files with 1 additions and 0 deletions
|
@ -673,6 +673,7 @@
|
|||
(real? res)
|
||||
(approx-equal? expect res (current-test-epsilon)))
|
||||
(and (complex? res)
|
||||
(complex? expect)
|
||||
(test-equal? (real-part expect) (real-part res))
|
||||
(test-equal? (imag-part expect) (imag-part res))))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue