summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dac9576)
raw | patch | inline | side by side (parent: dac9576)
author | rwst <rwst@users.sourceforge.net> | |
Mon, 22 May 2006 18:36:39 +0000 (18:36 +0000) | ||
committer | rwst <rwst@users.sourceforge.net> | |
Mon, 22 May 2006 18:36:39 +0000 (18:36 +0000) |
src/mod360-test.h | patch | blob | history |
diff --git a/src/mod360-test.h b/src/mod360-test.h
index 3f276b24ee096c9b2922ec00f75a1600af095fdf..55ed59f32899ec03bb68392645af15bb36af392d 100644 (file)
--- a/src/mod360-test.h
+++ b/src/mod360-test.h
class Mod360Test : public CxxTest::TestSuite
{
public:
- static double const inf = 1e400;
- static double const nan = inf - inf;
+ static double const inf() { return INFINITY; }
+ static double nan() { return ((double)INFINITY) - ((double)INFINITY); }
void testMod360()
{
{-359, 1},
{-360, -0},
{-361, 359},
- {inf, 0},
- {-inf, 0},
- {nan, 0},
+ {inf(), 0},
+ {-inf(), 0},
+ {nan(), 0},
{720, 0},
{-721, 359},
{-1000, 80}