summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJasper van de Gronde <jasper.vandegronde@gmail.com>2008-05-20 18:28:08 +0000
committerjaspervdg <jaspervdg@users.sourceforge.net>2008-05-20 18:28:08 +0000
commit16c8218f90ed185d0bcc14a43d75dd5d5a82896a (patch)
tree054eb0238b36d8c59f34e519ac5becded7ccaa8a /src
parentPathString now makes sure that relative coordinates are based on rounded abso... (diff)
downloadinkscape-16c8218f90ed185d0bcc14a43d75dd5d5a82896a.tar.gz
inkscape-16c8218f90ed185d0bcc14a43d75dd5d5a82896a.zip
Set of (cxx)tests for svg-path.cpp and PathString. Not (yet) part of make check.
(bzr r5720)
Diffstat (limited to 'src')
-rw-r--r--src/svg/svg-path-test.h4
1 files changed, 2 insertions, 2 deletions
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: