[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Goops generic-functions and srfi-64 tests
From: |
Daniel Llorens |
Subject: |
Re: Goops generic-functions and srfi-64 tests |
Date: |
Sun, 23 Nov 2014 14:56:53 +0100 |
On 23 Nov 2014, at 14:47, Taylan Ulrich Bayırlı/Kammer <address@hidden> wrote:
> Daniel Llorens <address@hidden> writes:
>
>> SRFI-64 has all these specific binary predicates: test-eqv,
>> test-equal, test-eq, test-approximate, but no way to pass your own
>> predicate, which is annoying. Please correct me if I'm wrong.
>>
>> An extension to be able to pass your own predicate may be more
>> generally useful.
>
> You can use `test-assert': (test-assert (my-equal? foo bar))
test-assert reports on the condition and not on the arguments, which is the
point of having binary test-etc.