summaryrefslogtreecommitdiff
path: root/include/cppunit/portability/FloatingPoint.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix for Solaris "finite" in ieeefp.h instead of math.hStephan Bergmann2012-02-011-0/+5
| | | | See <https://sourceforge.net/tracker/?func=detail&aid=2912590&group_id=11795&atid=311795>.
* Make floatingPointIsFinite() return int. Fix comment about comparisons and ↵Steve M. Robbins2007-03-051-5/+8
| | | | IEEE NaN.
* Portability/FloatingPoint.h must include Portability.hSteve M. Robbins2007-02-251-0/+1
|
* Src/cppunit/TestAssert.Baptiste Lepilleur2007-02-241-0/+50
src/cppunit/TestAssert.cpp (assertDoubleEquals): Moved finite & NaN tests to include/cppunit/portability/FloatingPoint.h. Changed implementation assertDoubleEquals to explicitly test for NaN in case of non-finite values to force equality failure in the presence of NaN. Previous implementation failed on Microsoft Visual Studio 6 (on this platform: NaN == NaN). * examples/cppunittest/TestAssertTest.cpp: Add more unit tests to test the portable floating-point primitive. Added missing include <limits>. * include/cppunit/portability/Makefile.am: * include/cppunit/portability/FloatingPoint.h: Added file. Extracted isfinite() from TestAssert.cpp. * include/cppunit/config-evc4: * include/cppunit/config-msvc6: Added support for _finite().