Skip to content

Commit

Permalink
Add line test
Browse files Browse the repository at this point in the history
  • Loading branch information
ldevillez committed Nov 16, 2023
1 parent 823c59b commit 0c34e2c
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
- Wrapping line now respect newline
- Fixing error on treating polylines and polygones
- Verbose option to add name of shapes and layers
- Converting line tag
### Security

## v2.1.0 - 2023/06/28
Expand Down
5 changes: 5 additions & 0 deletions tests/test_complete_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def create_test_from_filename(filename, utest, **kwargs):
class TestCompleteFiles(unittest.TestCase):
"""Class test for complete SVG"""

def test_line_shape(self):
"""Test complete convert line tag"""
filename = "line"
create_test_from_filename(filename, self, markings="interpret")

def test_linestyle(self):
"""Test complete convert line with different style"""
filename = "lines_style"
Expand Down
46 changes: 46 additions & 0 deletions tests/testfiles/line.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions tests/testfiles/line.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}

\begin{document}
\definecolor{cdddddd}{RGB}{221,221,221}


\def \globalscale {1.000000}
\begin{tikzpicture}[y=1cm, x=1cm, yscale=\globalscale,xscale=\globalscale, inner sep=0pt, outer sep=0pt]
\path[draw=cdddddd,line width=0.0529cm,miter limit=10.0] (0.0, 12.8058) -- (10.5833, 2.2225);




\end{tikzpicture}
\end{document}

0 comments on commit 0c34e2c

Please sign in to comment.