Menu

#183 CPPUNIT_ASSERT_DOUBLES_EQUAL works incorrectly

1.12.0
open
nobody
5
2007-12-12
2007-12-12
testpu
No

CPPUNIT_ASSERT_DOUBLES_EQUAL macros is not failed when actual value is equal to NAN.
For example:
CPPUNIT_ASSERT_DOUBLES_EQUAL(1.0, std::numeric_limits<double>::quiet_NaN(), 1e-12);

This test is not failed.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.