diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2007-02-24 20:13:04 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2007-02-24 20:13:04 +0000 |
| commit | 0d30a2aec28085cfb9fe359c321c289609b884ca (patch) | |
| tree | d5848b1cb981a9fa5ba351b5eb01e4a0e06e1cf8 /src/cppunit/StringTools.cpp | |
| parent | 3ca9c5d071cb8162c89fd514a6116ee6b450d763 (diff) | |
| download | cppunit-0d30a2aec28085cfb9fe359c321c289609b884ca.tar.gz | |
Src/cppunit/TestAssert.
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().
Diffstat (limited to 'src/cppunit/StringTools.cpp')
0 files changed, 0 insertions, 0 deletions
