diff options
Diffstat (limited to 't/fmt-tex.t')
-rw-r--r-- | t/fmt-tex.t | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/t/fmt-tex.t b/t/fmt-tex.t new file mode 100644 index 0000000..a380cf5 --- /dev/null +++ b/t/fmt-tex.t @@ -0,0 +1,37 @@ +# TeX module tester. + +######################### + +use strict; +use warnings; + +use lib q(t); +use Testhelper; + +my @tests; + +foreach my $t (qw(basic theorem)) { + push @tests, + { + 'format' => 'latex', + 'input' => "fmt/tex/$t.tex" + }; +} + +push @tests, + { + 'doc' => 'invalid input command, without ignore', + 'format' => 'latex', + 'input' => "fmt/tex/input-in-verbatim.tex", + 'error' => 1, + 'norm_stderr' => 'fmt/tex/input-in-verbatim.stderr-without-ignore', + }, + { + 'doc' => 'invalid input command, with exclude_include', + 'format' => 'latex', + 'input' => "fmt/tex/input-in-verbatim.tex", + 'options' => '-o exclude_include=main.tex' + }; + +run_all_tests(@tests); +0; |