Skip to content

Commit

Permalink
Test files should be compilable for further testing
Browse files Browse the repository at this point in the history
  • Loading branch information
WGUNDERWOOD committed May 3, 2024
1 parent d75dd02 commit 8284537
Show file tree
Hide file tree
Showing 11 changed files with 180 additions and 140 deletions.
4 changes: 0 additions & 4 deletions notes.org
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
* Tests
** Look for problem cases in other latex documents
* Features
** Fold long lines to 80 characters
*** Care with trailing comments with space or no space
*** No folding in verbatim environments, just warn
** Merge short alphanumeric lines
** Flags
*** -d Dry run
*** -p Print to STDOUT
Expand Down
12 changes: 11 additions & 1 deletion tests/environment_lines_in.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
\documentclass{article}

\begin{document}

\newenvironment{env1}{}{}
\newenvironment{env2}{}{}
\newenvironment{env3}{}{}

% environments on separate lines
\begin{env1}
\begin{env2}
Expand All @@ -16,4 +24,6 @@
\begin{env1}\begin{env2}\end{env2}\end{env1}

% environments with extra brackets
\begin{env1}()(\begin{env2}[{}]\end{env2}[])\end{env1}
\begin{env1}(a)(b \begin{env2}[c{d}e] \end{env2}[f]g)\end{env1}

\end{document}
16 changes: 13 additions & 3 deletions tests/environment_lines_out.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
\documentclass{article}

\begin{document}

\newenvironment{env1}{}{}
\newenvironment{env2}{}{}
\newenvironment{env3}{}{}

% environments on separate lines
\begin{env1}
\begin{env2}
Expand All @@ -23,7 +31,9 @@
\end{env1}

% environments with extra brackets
\begin{env1}()(
\begin{env2}[{}]
\end{env2}[])
\begin{env1}(a)(b
\begin{env2}[c{d}e]
\end{env2}[f]g)
\end{env1}

\end{document}
6 changes: 6 additions & 0 deletions tests/lists_in.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
\documentclass{article}

\begin{document}

\begin{itemize}

\item Lists with items on one line
Expand All @@ -13,3 +17,5 @@
Or even just % trailing comments

\end{itemize}

\end{document}
6 changes: 6 additions & 0 deletions tests/lists_out.tex
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
\documentclass{article}

\begin{document}

\begin{itemize}

\item Lists with items on one line
Expand All @@ -13,3 +17,5 @@
Or even just % trailing comments

\end{itemize}

\end{document}
Loading

0 comments on commit 8284537

Please sign in to comment.