Fixed regression in VPath::Clone() api and updated test cases

This commit is contained in:
subhransu mohanty
2019-05-27 10:32:27 +09:00
committed by Subhransu
parent 7d6264ad7b
commit fa9a48c375
3 changed files with 5 additions and 4 deletions

View File

@@ -69,6 +69,7 @@ TEST_F(VPathTest, reserve) {
TEST_F(VPathTest, clone) {
VPath pathClone;
pathClone.clone(pathOval);
ASSERT_TRUE(pathClone.unique());
ASSERT_EQ(pathClone.segments(), pathOval.segments());
ASSERT_EQ(pathClone.points().size(), pathOval.points().size());
ASSERT_NE(pathClone.points().data(), pathOval.points().data());