From: jaspervdg Date: Tue, 20 May 2008 18:28:08 +0000 (+0000) Subject: Set of (cxx)tests for svg-path.cpp and PathString. Not (yet) part of make check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2f57341180ee195f9293e84600427755f6a7b97;p=inkscape.git Set of (cxx)tests for svg-path.cpp and PathString. Not (yet) part of make check. --- diff --git a/src/svg/svg-path-test.h b/src/svg/svg-path-test.h index 61a63dba6..ec9536f0f 100644 --- a/src/svg/svg-path-test.h +++ b/src/svg/svg-path-test.h @@ -237,7 +237,7 @@ public: { // Test relative char const * path_str = "m .1.2+0.3.0e0.0e0+6e-1-.3.0 z"; NArtBpath * bpath = sp_svg_read_path(path_str); - TS_ASSERT(bpathEqual(bpath,bpath_good,.1e-8)); + TS_ASSERT(bpathEqual(bpath,bpath_good)); g_free(bpath); } } @@ -436,7 +436,7 @@ public: } private: - bool bpathEqual(NArtBpath const * a, NArtBpath const * b, double eps = 0) { + bool bpathEqual(NArtBpath const * a, NArtBpath const * b, double eps = 1e-16) { while(a->code != NR_END && b->code == a->code) { switch(a->code) { case NR_MOVETO: