summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a51d626)
raw | patch | inline | side by side (parent: a51d626)
author | jaspervdg <jaspervdg@users.sourceforge.net> | |
Tue, 20 May 2008 18:28:08 +0000 (18:28 +0000) | ||
committer | jaspervdg <jaspervdg@users.sourceforge.net> | |
Tue, 20 May 2008 18:28:08 +0000 (18:28 +0000) |
src/svg/svg-path-test.h | patch | blob | history |
index 61a63dba648fe522f18eced4622991bf906ecc27..ec9536f0ff0e41e877f09678cdc6a8d3c0385b23 100644 (file)
--- a/src/svg/svg-path-test.h
+++ b/src/svg/svg-path-test.h
{ // 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
}\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