Code

Mnemonics in fill and stroke dialog and menu
[inkscape.git] / src / mod360-test.h
index 3f276b24ee096c9b2922ec00f75a1600af095fdf..508553970c27ea011e8fad09c0bd07edcdd296a3 100644 (file)
@@ -4,7 +4,7 @@
 
 #include <cxxtest/TestSuite.h>
 
-#include <isnan.h>
+#include "2geom/isnan.h"
 
 #include "mod360.h"
 
@@ -12,8 +12,8 @@
 class Mod360Test : public CxxTest::TestSuite
 {
 public:
-    static double const inf = 1e400;
-    static double const nan = inf - inf;
+    static double inf() { return INFINITY; }
+    static double nan() { return ((double)INFINITY) - ((double)INFINITY); }
 
     void testMod360()
     {
@@ -26,9 +26,9 @@ public:
             {-359, 1},
             {-360, -0},
             {-361, 359},
-            {inf, 0},
-            {-inf, 0},
-            {nan, 0},
+            {inf(), 0},
+            {-inf(), 0},
+            {nan(), 0},
             {720, 0},
             {-721, 359},
             {-1000, 80}
@@ -54,5 +54,5 @@ public:
   fill-column:99
   End:
 */
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :