Alex Shinn scripsit:

> The solution is definitely not to write your own comparison function,
> and trust that the test egg is doing the right thing.

It isn't, though, not quite.  What it needs to do is not a dichotomy of
"if inexact, use epsilon, otherwise use `equal?`" but rather to have
a version of `equal?` that uses epsilon when it comes to a float.
That way comparisons against list or vector structure that contains
floats (as in the OP's case) will work correctly.

-- 
John Cowan          http://www.ccil.org/~cowan        [email protected]
What has four pairs of pants, lives in Philadelphia,
and it never rains but it pours?
        --Rufus T. Firefly

_______________________________________________
Chicken-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to