Code

Set of (cxx)tests for svg-path.cpp and PathString. Not (yet) part of make check.
authorjaspervdg <jaspervdg@users.sourceforge.net>
Tue, 20 May 2008 18:28:08 +0000 (18:28 +0000)
committerjaspervdg <jaspervdg@users.sourceforge.net>
Tue, 20 May 2008 18:28:08 +0000 (18:28 +0000)
src/svg/svg-path-test.h

index 61a63dba648fe522f18eced4622991bf906ecc27..ec9536f0ff0e41e877f09678cdc6a8d3c0385b23 100644 (file)
@@ -237,7 +237,7 @@ public:
         {   // Test relative\r
             char const * path_str = "m .1.2+0.3.0e0.0e0+6e-1-.3.0 z";\r
             NArtBpath * bpath = sp_svg_read_path(path_str);\r
-            TS_ASSERT(bpathEqual(bpath,bpath_good,.1e-8));\r
+            TS_ASSERT(bpathEqual(bpath,bpath_good));\r
             g_free(bpath);\r
         }\r
     }\r
@@ -436,7 +436,7 @@ public:
     }\r
 \r
 private:\r
-    bool bpathEqual(NArtBpath const * a, NArtBpath const * b, double eps = 0) {\r
+    bool bpathEqual(NArtBpath const * a, NArtBpath const * b, double eps = 1e-16) {\r
         while(a->code != NR_END && b->code == a->code) {\r
             switch(a->code) {\r
             case NR_MOVETO:\r