Code

fix error in curve cxxtests
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 28 Sep 2009 22:16:57 +0000 (22:16 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 28 Sep 2009 22:16:57 +0000 (22:16 +0000)
src/display/curve-test.h

index d779fe09b07ca1056bb394ba648a80018155d10f..784ccee8938b98bc345c3997977011498f219a91 100644 (file)
@@ -90,7 +90,7 @@ public:
             pv[0] = path1;
             TS_ASSERT_EQUALS(SPCurve(pv).nodes_in_path() , 3u);
             pv[0] = path2;
-            TS_ASSERT_EQUALS(SPCurve(pv).nodes_in_path() , 3u);
+            TS_ASSERT_EQUALS(SPCurve(pv).nodes_in_path() , 2u); // zero length closing segments do not increase the nodecount.
             pv[0] = path3;
             TS_ASSERT_EQUALS(SPCurve(pv).nodes_in_path() , 5u);
             pv[0] = path4;