Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add line test #173

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}