changeset 1019:7e96bbd20556

tests: rename test dir to tests The old name clashed with the 'test' make target, therefore it wasn't possible to run the tests via make. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 09 Apr 2020 21:18:05 -0400
parents 8117b33fb54b
children 2240f99f18a6
files CMakeLists.txt test/CMakeLists.txt test/fmt3-bugs/CMakeLists.txt test/fmt3-bugs/command-with-newline.tex test/fmt3-bugs/comment-par.tex test/fmt3-bugs/excessive-newline.tex test/fmt3-bugs/parend-with-garbage-wspace.tex test/fmt3-bugs/trailing-newlines-empty.tex test/fmt3-bugs/trailing-newlines.tex test/fmt3-commands/CMakeLists.txt test/fmt3-commands/abbrev.tex test/fmt3-commands/basic_math.tex test/fmt3-commands/bug.tex test/fmt3-commands/category.tex test/fmt3-commands/degree.tex test/fmt3-commands/emph.tex test/fmt3-commands/img.tex test/fmt3-commands/item.tex test/fmt3-commands/leftarrow.tex test/fmt3-commands/leftrightarrow.tex test/fmt3-commands/link.tex test/fmt3-commands/listing-env.tex test/fmt3-commands/listing.tex test/fmt3-commands/listing1.txt test/fmt3-commands/listing2.txt test/fmt3-commands/photo.tex test/fmt3-commands/photolink.tex test/fmt3-commands/post.tex test/fmt3-commands/published.tex test/fmt3-commands/rightarrow.tex test/fmt3-commands/section.tex test/fmt3-commands/simple.tex test/fmt3-commands/subsection.tex test/fmt3-commands/subsubsection.tex test/fmt3-commands/table.tex test/fmt3-commands/tag.tex test/fmt3-commands/textbf.tex test/fmt3-commands/textit.tex test/fmt3-commands/texttt-env.tex test/fmt3-commands/texttt.tex test/fmt3-commands/title.tex test/fmt3-commands/trow.tex test/fmt3-commands/twitterimg.tex test/fmt3-commands/verbatim.tex test/fmt3-commands/wiki.tex test/fmt3-math/CMakeLists.txt test/fmt3-math/add-num-num.tex test/fmt3-math/add-var-var.tex test/fmt3-math/curly-integer.tex test/fmt3-math/curly-var.tex test/fmt3-math/div-num-num.tex test/fmt3-math/div-var-var.tex test/fmt3-math/equal-num-num.tex test/fmt3-math/equal-var-var.tex test/fmt3-math/float-1.0.tex test/fmt3-math/float-minus1.0.tex test/fmt3-math/float-plus1.0.tex test/fmt3-math/frac-1-over-2.tex test/fmt3-math/integer-1.tex test/fmt3-math/integer-minus1.tex test/fmt3-math/integer-plus1.tex test/fmt3-math/mul-num-num.tex test/fmt3-math/mul-var-var.tex test/fmt3-math/paren-num.tex test/fmt3-math/paren-var.tex test/fmt3-math/pow-2-to-3-curly.tex test/fmt3-math/pow-2-to-3.tex test/fmt3-math/sqrt-9.tex test/fmt3-math/subscript-2-3-curly.tex test/fmt3-math/subscript-2-3.tex test/fmt3-math/subtract-num-num.tex test/fmt3-math/subtract-var-var.tex test/fmt3-math/var-a.tex test/fmt3-math/var-abcdef.tex tests/CMakeLists.txt tests/fmt3-bugs/CMakeLists.txt tests/fmt3-bugs/command-with-newline.tex tests/fmt3-bugs/comment-par.tex tests/fmt3-bugs/excessive-newline.tex tests/fmt3-bugs/parend-with-garbage-wspace.tex tests/fmt3-bugs/trailing-newlines-empty.tex tests/fmt3-bugs/trailing-newlines.tex tests/fmt3-commands/CMakeLists.txt tests/fmt3-commands/abbrev.tex tests/fmt3-commands/basic_math.tex tests/fmt3-commands/bug.tex tests/fmt3-commands/category.tex tests/fmt3-commands/degree.tex tests/fmt3-commands/emph.tex tests/fmt3-commands/img.tex tests/fmt3-commands/item.tex tests/fmt3-commands/leftarrow.tex tests/fmt3-commands/leftrightarrow.tex tests/fmt3-commands/link.tex tests/fmt3-commands/listing-env.tex tests/fmt3-commands/listing.tex tests/fmt3-commands/listing1.txt tests/fmt3-commands/listing2.txt tests/fmt3-commands/photo.tex tests/fmt3-commands/photolink.tex tests/fmt3-commands/post.tex tests/fmt3-commands/published.tex tests/fmt3-commands/rightarrow.tex tests/fmt3-commands/section.tex tests/fmt3-commands/simple.tex tests/fmt3-commands/subsection.tex tests/fmt3-commands/subsubsection.tex tests/fmt3-commands/table.tex tests/fmt3-commands/tag.tex tests/fmt3-commands/textbf.tex tests/fmt3-commands/textit.tex tests/fmt3-commands/texttt-env.tex tests/fmt3-commands/texttt.tex tests/fmt3-commands/title.tex tests/fmt3-commands/trow.tex tests/fmt3-commands/twitterimg.tex tests/fmt3-commands/verbatim.tex tests/fmt3-commands/wiki.tex tests/fmt3-math/CMakeLists.txt tests/fmt3-math/add-num-num.tex tests/fmt3-math/add-var-var.tex tests/fmt3-math/curly-integer.tex tests/fmt3-math/curly-var.tex tests/fmt3-math/div-num-num.tex tests/fmt3-math/div-var-var.tex tests/fmt3-math/equal-num-num.tex tests/fmt3-math/equal-var-var.tex tests/fmt3-math/float-1.0.tex tests/fmt3-math/float-minus1.0.tex tests/fmt3-math/float-plus1.0.tex tests/fmt3-math/frac-1-over-2.tex tests/fmt3-math/integer-1.tex tests/fmt3-math/integer-minus1.tex tests/fmt3-math/integer-plus1.tex tests/fmt3-math/mul-num-num.tex tests/fmt3-math/mul-var-var.tex tests/fmt3-math/paren-num.tex tests/fmt3-math/paren-var.tex tests/fmt3-math/pow-2-to-3-curly.tex tests/fmt3-math/pow-2-to-3.tex tests/fmt3-math/sqrt-9.tex tests/fmt3-math/subscript-2-3-curly.tex tests/fmt3-math/subscript-2-3.tex tests/fmt3-math/subtract-num-num.tex tests/fmt3-math/subtract-var-var.tex tests/fmt3-math/var-a.tex tests/fmt3-math/var-abcdef.tex
diffstat 147 files changed, 226 insertions(+), 226 deletions(-) [+]
line wrap: on
line diff
--- a/CMakeLists.txt	Thu Apr 09 21:13:52 2020 -0400
+++ b/CMakeLists.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -1,5 +1,5 @@
 #
-# Copyright (c) 2011-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+# Copyright (c) 2011-2020 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -146,4 +146,4 @@
 	)
 endfunction()
 
-add_subdirectory(test)
+add_subdirectory(tests)
--- a/test/CMakeLists.txt	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-#
-# Copyright (c) 2013-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-#
-
-add_subdirectory(fmt3-commands)
-add_subdirectory(fmt3-bugs)
-add_subdirectory(fmt3-math)
--- a/test/fmt3-bugs/CMakeLists.txt	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-#
-# Copyright (c) 2013-2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-#
-
-file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.tex)
-foreach(TEST ${TESTS})
-	simple_c_test(fmt3 bug fmt3 ${TEST})
-endforeach()
--- a/test/fmt3-bugs/command-with-newline.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\textbf{foo
-bar}
--- a/test/fmt3-bugs/comment-par.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-abc
-
-%
-
-def
--- a/test/fmt3-bugs/excessive-newline.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,8 +0,0 @@
-foo
-
-
-
-
-
-
-bar
--- a/test/fmt3-bugs/parend-with-garbage-wspace.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-foo
-
-   
-
-
-bar
--- a/test/fmt3-bugs/trailing-newlines-empty.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-
-
--- a/test/fmt3-bugs/trailing-newlines.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-foo
-
--- a/test/fmt3-commands/CMakeLists.txt	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-#
-# Copyright (c) 2013-2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-#
-
-file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.tex)
-foreach(TEST ${TESTS})
-	simple_c_test(fmt3 cmd fmt3 ${TEST})
-endforeach()
--- a/test/fmt3-commands/abbrev.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\abbrev[abc]{def}
--- a/test/fmt3-commands/basic_math.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-fermat's theorem: $a^n + b^n = c^n$
-
-relativity:
-
-$v(t) = \frac{at}{\sqrt{1 + (\frac{at}{c})^2}}$
--- a/test/fmt3-commands/bug.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\bug{number}
--- a/test/fmt3-commands/category.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-\category{a}
-\category{b}
-\category{c}
--- a/test/fmt3-commands/degree.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\degree{C}
--- a/test/fmt3-commands/emph.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\emph{foo}
--- a/test/fmt3-commands/img.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\img[label]{URL1}
-\img{URL2}
--- a/test/fmt3-commands/item.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\item{foo}
-\item[label]{bar}
--- a/test/fmt3-commands/leftarrow.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\leftarrow
--- a/test/fmt3-commands/leftrightarrow.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\leftrightarrow
--- a/test/fmt3-commands/link.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\link[label]{URL1}
-\link{URL2}
--- a/test/fmt3-commands/listing-env.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-blah
-\begin{listing}
-foobar
-\end{listing}
-xyzzy
--- a/test/fmt3-commands/listing.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\listing{listing1.txt}
-\listing{listing2.txt}
--- a/test/fmt3-commands/listing1.txt	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-1
--- a/test/fmt3-commands/listing2.txt	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-2
--- a/test/fmt3-commands/photo.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\photo[alttext]{URL1}
-\photo{URL2}
--- a/test/fmt3-commands/photolink.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\photolink[label]{URL1}
-\photolink{URL2}
--- a/test/fmt3-commands/post.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\post[label]{id1}
-\post{id2}
--- a/test/fmt3-commands/published.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\published{2013-04-24 17:56}
--- a/test/fmt3-commands/rightarrow.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\rightarrow
--- a/test/fmt3-commands/section.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\section{foo}
--- a/test/fmt3-commands/simple.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-hello
--- a/test/fmt3-commands/subsection.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\subsection{foo}
--- a/test/fmt3-commands/subsubsection.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\subsubsection{foo}
--- a/test/fmt3-commands/table.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-\begin{tabular}
-\trow{a & b & c}
-\trow{d&e&f&g}
-\end{tabular}
--- a/test/fmt3-commands/tag.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-\tag{a}
-\tag{b}
-\tag{c}
--- a/test/fmt3-commands/textbf.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\textbf{text}
--- a/test/fmt3-commands/textit.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\textit{text}
--- a/test/fmt3-commands/texttt-env.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-aoeu
-\begin{texttt}
-foo\textbf{bar}
-\end{texttt}
-xyzzy
--- a/test/fmt3-commands/texttt.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\texttt{test}
--- a/test/fmt3-commands/title.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\title{post title}
--- a/test/fmt3-commands/trow.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-\trow{a}
-\trow{a & b}
-\trow{a & b & c}
--- a/test/fmt3-commands/twitterimg.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-\twitterimg{foo}
--- a/test/fmt3-commands/verbatim.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-foo
-\begin{verbatim}
-aoeuaoeu<h1>abc</h1>
-\end{verbatim}
-baz
--- a/test/fmt3-commands/wiki.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,2 +0,0 @@
-\wiki[label]{URL1}
-\wiki{URL2}
--- a/test/fmt3-math/CMakeLists.txt	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-#
-# Copyright (c) 2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
-#
-# Permission is hereby granted, free of charge, to any person obtaining a copy
-# of this software and associated documentation files (the "Software"), to deal
-# in the Software without restriction, including without limitation the rights
-# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the Software is
-# furnished to do so, subject to the following conditions:
-#
-# The above copyright notice and this permission notice shall be included in
-# all copies or substantial portions of the Software.
-#
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-# SOFTWARE.
-#
-
-file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.tex)
-foreach(TEST ${TESTS})
-	simple_c_test(fmt3 math fmt3 ${TEST})
-endforeach()
--- a/test/fmt3-math/add-num-num.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$1 + 2$
--- a/test/fmt3-math/add-var-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$a + b$
--- a/test/fmt3-math/curly-integer.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-${1}$
--- a/test/fmt3-math/curly-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-${a}$
--- a/test/fmt3-math/div-num-num.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$2 / 3$
--- a/test/fmt3-math/div-var-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$a / b$
--- a/test/fmt3-math/equal-num-num.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$5 = 7$
--- a/test/fmt3-math/equal-var-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$a = b$
--- a/test/fmt3-math/float-1.0.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$1.0$
--- a/test/fmt3-math/float-minus1.0.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$-1.0$
--- a/test/fmt3-math/float-plus1.0.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$+1.0$
--- a/test/fmt3-math/frac-1-over-2.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$\frac{1}{2}$
--- a/test/fmt3-math/integer-1.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$1$
--- a/test/fmt3-math/integer-minus1.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$-1$
--- a/test/fmt3-math/integer-plus1.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$+1$
--- a/test/fmt3-math/mul-num-num.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$2 * 3$
--- a/test/fmt3-math/mul-var-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$a * b$
--- a/test/fmt3-math/paren-num.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$(5)$
--- a/test/fmt3-math/paren-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$(a)$
--- a/test/fmt3-math/pow-2-to-3-curly.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$2^{3}$
--- a/test/fmt3-math/pow-2-to-3.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$2^3$
--- a/test/fmt3-math/sqrt-9.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$\sqrt{9}$
--- a/test/fmt3-math/subscript-2-3-curly.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$2_{3}$
--- a/test/fmt3-math/subscript-2-3.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$2_3$
--- a/test/fmt3-math/subtract-num-num.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$3 - 2$
--- a/test/fmt3-math/subtract-var-var.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$a - b$
--- a/test/fmt3-math/var-a.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$a$
--- a/test/fmt3-math/var-abcdef.tex	Thu Apr 09 21:13:52 2020 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-$abcdef$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/CMakeLists.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,25 @@
+#
+# Copyright (c) 2013-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+add_subdirectory(fmt3-commands)
+add_subdirectory(fmt3-bugs)
+add_subdirectory(fmt3-math)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/CMakeLists.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,26 @@
+#
+# Copyright (c) 2013-2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.tex)
+foreach(TEST ${TESTS})
+	simple_c_test(fmt3 bug fmt3 ${TEST})
+endforeach()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/command-with-newline.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\textbf{foo
+bar}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/comment-par.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,5 @@
+abc
+
+%
+
+def
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/excessive-newline.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,8 @@
+foo
+
+
+
+
+
+
+bar
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/parend-with-garbage-wspace.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,6 @@
+foo
+
+   
+
+
+bar
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/trailing-newlines-empty.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-bugs/trailing-newlines.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+foo
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/CMakeLists.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,26 @@
+#
+# Copyright (c) 2013-2015 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.tex)
+foreach(TEST ${TESTS})
+	simple_c_test(fmt3 cmd fmt3 ${TEST})
+endforeach()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/abbrev.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\abbrev[abc]{def}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/basic_math.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,5 @@
+fermat's theorem: $a^n + b^n = c^n$
+
+relativity:
+
+$v(t) = \frac{at}{\sqrt{1 + (\frac{at}{c})^2}}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/bug.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\bug{number}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/category.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,3 @@
+\category{a}
+\category{b}
+\category{c}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/degree.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\degree{C}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/emph.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\emph{foo}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/img.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\img[label]{URL1}
+\img{URL2}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/item.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\item{foo}
+\item[label]{bar}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/leftarrow.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\leftarrow
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/leftrightarrow.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\leftrightarrow
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/link.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\link[label]{URL1}
+\link{URL2}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/listing-env.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,5 @@
+blah
+\begin{listing}
+foobar
+\end{listing}
+xyzzy
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/listing.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\listing{listing1.txt}
+\listing{listing2.txt}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/listing1.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/listing2.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/photo.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\photo[alttext]{URL1}
+\photo{URL2}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/photolink.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\photolink[label]{URL1}
+\photolink{URL2}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/post.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\post[label]{id1}
+\post{id2}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/published.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\published{2013-04-24 17:56}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/rightarrow.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\rightarrow
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/section.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\section{foo}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/simple.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+hello
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/subsection.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\subsection{foo}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/subsubsection.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\subsubsection{foo}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/table.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,4 @@
+\begin{tabular}
+\trow{a & b & c}
+\trow{d&e&f&g}
+\end{tabular}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/tag.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,3 @@
+\tag{a}
+\tag{b}
+\tag{c}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/textbf.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\textbf{text}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/textit.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\textit{text}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/texttt-env.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,5 @@
+aoeu
+\begin{texttt}
+foo\textbf{bar}
+\end{texttt}
+xyzzy
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/texttt.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\texttt{test}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/title.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\title{post title}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/trow.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,3 @@
+\trow{a}
+\trow{a & b}
+\trow{a & b & c}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/twitterimg.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+\twitterimg{foo}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/verbatim.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,5 @@
+foo
+\begin{verbatim}
+aoeuaoeu<h1>abc</h1>
+\end{verbatim}
+baz
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-commands/wiki.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,2 @@
+\wiki[label]{URL1}
+\wiki{URL2}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/CMakeLists.txt	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,26 @@
+#
+# Copyright (c) 2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+file(GLOB TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.tex)
+foreach(TEST ${TESTS})
+	simple_c_test(fmt3 math fmt3 ${TEST})
+endforeach()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/add-num-num.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$1 + 2$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/add-var-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$a + b$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/curly-integer.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+${1}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/curly-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+${a}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/div-num-num.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$2 / 3$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/div-var-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$a / b$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/equal-num-num.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$5 = 7$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/equal-var-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$a = b$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/float-1.0.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$1.0$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/float-minus1.0.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$-1.0$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/float-plus1.0.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$+1.0$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/frac-1-over-2.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$\frac{1}{2}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/integer-1.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$1$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/integer-minus1.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$-1$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/integer-plus1.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$+1$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/mul-num-num.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$2 * 3$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/mul-var-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$a * b$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/paren-num.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$(5)$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/paren-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$(a)$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/pow-2-to-3-curly.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$2^{3}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/pow-2-to-3.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$2^3$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/sqrt-9.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$\sqrt{9}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/subscript-2-3-curly.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$2_{3}$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/subscript-2-3.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$2_3$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/subtract-num-num.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$3 - 2$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/subtract-var-var.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$a - b$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/var-a.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$a$
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/fmt3-math/var-abcdef.tex	Thu Apr 09 21:18:05 2020 -0400
@@ -0,0 +1,1 @@
+$abcdef$