Skip to content

Commit

Permalink
Added tests for issue #80
Browse files Browse the repository at this point in the history
  • Loading branch information
matze-dd authored Oct 22, 2020
1 parent 3aae9ba commit 609c9be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_packages/test_latex_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def get_plain(latex):
(r'\aa', 'å'),
(r'\AE', 'Æ'),
(r'\ae', 'æ'),
(r'A\bibitem{lab}B', 'A B'),
(r'A\bibliographystyle{alphadin}B', 'AB'),
(r'A\footnotemark B', 'AB'),
(r'A\footnotemark[1] B', 'A B'),
(r'A\hfill B', 'A B'),
Expand Down Expand Up @@ -50,7 +52,7 @@ def get_plain(latex):
]

@pytest.mark.parametrize('latex,plain_expected', data_test_macros_latex)
def test_macros_latex(latex, plain_expected):
def test_macros_latex_builtins(latex, plain_expected):
plain = get_plain(latex)
assert plain == plain_expected

Expand Down Expand Up @@ -149,6 +151,7 @@ def test_specials(latex, plain_expected):
(r'A\begin{table}B\end{table}C', 'ABC'),
(r'A\begin{table}[o]B\end{table}C', 'ABC'),
(r'A\begin{tabular}{|||}B\end{tabular}C', 'ABC'),
(r'A\begin{thebibliography}{lab}B', 'A\n\nB'),
(r'A\begin{verbatim}B\end{verbatim}C', 'A\n\nB\n\nC'),

]
Expand Down

0 comments on commit 609c9be

Please sign in to comment.