diff options
Diffstat (limited to 'Tests/svgLib/path/parser_test.py')
-rw-r--r-- | Tests/svgLib/path/parser_test.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Tests/svgLib/path/parser_test.py b/Tests/svgLib/path/parser_test.py index b533dd8e..d33043fc 100644 --- a/Tests/svgLib/path/parser_test.py +++ b/Tests/svgLib/path/parser_test.py @@ -280,6 +280,15 @@ def test_exponents(): assert pen.value == expected + pen = RecordingPen() + parse_path("M-3e38 3E+38L-3E-38,3e-38", pen) + expected = [ + ("moveTo", ((-3e+38, 3e+38),)), + ("lineTo", ((-3e-38, 3e-38),)), + ("endPath", ()), + ] + + assert pen.value == expected def test_invalid_implicit_command(): with pytest.raises(ValueError) as exc_info: @@ -360,7 +369,7 @@ def test_arc_pen_with_arcTo(): "M1-2A3-4-1.0 01.5.7", [ ("moveTo", ((1.0, -2.0),)), - ("arcTo", (3.0, -4.0, -1.0, False, True, (0.5, 0.7))), + ("arcTo", (3.0, 4.0, -1.0, False, True, (0.5, 0.7))), ("endPath", ()), ], ), |