Hi Vlad,
Thanks very much for the quick response, but I was more interested in
techniques dealing with value difference across multiple systems;
since float values may differ amongst a set of machines. For example,
the expected value may differ for a given algorithm depending on
system processor...etc. Also note, the macros you mentioned only go up
to 4 ULPs.
Kindest Regards,
Sonu
On Apr 9, 10:52 pm, Vlad Losev <
vladlo...@gmail.com> wrote:
> Hi Sonu,
>
> Google Test has the EXPECT_FLOAT_EQ and the
> EXPECT_DOUBLE_EQ<
http://code.google.com/p/googletest/wiki/GoogleTestAdvancedGuide#Floa...>macros,
> which check that the two values are within 4 ULPs. Or you can define
> your own comparison predicate and use it with the EXPECT_PRED_FORMAT2()
> macro. Is this what you are looking for?
>