From 321e097a4ee6f3894f51d6cc1ea01851aeb70a32 Mon Sep 17 00:00:00 2001 From: Dmitry_Milk Date: Sun, 27 May 2018 12:34:12 +0300 Subject: [PATCH] polygon/polyline parsing tests added --- test/polygons.svg | 2 +- test/test_svg2paths.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/polygons.svg b/test/polygons.svg index ab6c9fd..c310e29 100644 --- a/test/polygons.svg +++ b/test/polygons.svg @@ -1,5 +1,5 @@ - + diff --git a/test/test_svg2paths.py b/test/test_svg2paths.py index 45a4b48..90a23e0 100644 --- a/test/test_svg2paths.py +++ b/test/test_svg2paths.py @@ -20,9 +20,9 @@ class TestSVG2Paths(unittest.TestCase): # triangular quadrilateral (with a redundant 4th "closure" point) path = paths[1] - path_correct = Path(Line(0+0j, 0+100j), - Line(0+100j, 100+100j), - Line(100+100j, 0+0j), + path_correct = Path(Line(0+0j, 0-100j), + Line(0-100j, 0.1-100j), + Line(0.1-100j, 0+0j), Line(0+0j, 0+0j) # result of redundant point ) self.assertTrue(path.isclosed())