latex2html: add test (#11712)
This commit is contained in:
parent
2d0b823a9c
commit
6e512111f6
1 changed files with 14 additions and 0 deletions
|
@ -20,4 +20,18 @@ class Latex2html < Formula
|
|||
"--with-texpath=#{share}/texmf/tex/latex/html"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.tex").write <<-EOS.undent
|
||||
\\documentclass{article}
|
||||
\\usepackage[utf8]{inputenc}
|
||||
\\title{Experimental Setup}
|
||||
\\date{\\today}
|
||||
\\begin{document}
|
||||
\\maketitle
|
||||
\\end{document}
|
||||
EOS
|
||||
system "#{bin}/latex2html", "test.tex"
|
||||
assert_match /Experimental Setup/, File.read("test/test.html")
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue