From 16c8218f90ed185d0bcc14a43d75dd5d5a82896a Mon Sep 17 00:00:00 2001 From: Jasper van de Gronde Date: Tue, 20 May 2008 18:28:08 +0000 Subject: Set of (cxx)tests for svg-path.cpp and PathString. Not (yet) part of make check. (bzr r5720) --- src/svg/svg-path-test.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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: -- cgit v1.2.3