Commits

John Lenz committed 1c8a3d3

Change directory of test files

  • Participants
  • Parent commits d11050f

Comments (0)

Files changed (26)

File test/files/begindocument-missing.tex

+\documentclass{article}
+
+Hello
+%Run:default: 
+%:9:1: Expecting \begin{document}
+%:9:1: Expecting \end{document}
+%EndErrors
+

File test/files/docclass-bad-arg.tex

+\documentclass[arg1 , , arg2]{article}
+\begin{document}
+Hello world
+\end{document}
+%Run:default: 
+%:1:23: Expecting an optional argument
+%EndErrors
+

File test/files/docclass-good-arg.tex

+\documentclass[ arg1, arg2,arg3, hi] { article}
+
+\begin{document}
+
+\end{document}

File test/files/docclass-invalid-chars-arg.tex

+\documentclass[arg1, arg2,arg3, a$#^ ]{article}
+\begin{document}
+Hello, world
+\end{document}
+%Run:default: 
+%:1:34-39: Invalid characters in optional argument
+%EndErrors
+

File test/files/docclass-invalid-chars-doctype.tex

+\documentclass[arg1]{ article &@# }
+\begin{document}
+Hello world
+\end{document}
+%Run:default: 
+%:1:31-36: Invalid characters in command argument
+%EndErrors
+

File test/files/docclass-missing-end-arg.tex

+\documentclass[arg1, arg2 {article}
+\begin{document}
+Hello, world
+\end{document}
+%Run:default: 
+%:1:27:+ Opening bracket at line 1, column 15 has no closing bracket.
+%        Assuming closing bracket exists here.
+%EndErrors
+

File test/files/docclass-missing-end-brace.tex

+\documentclass[arg1]{article
+% a comment
+\begin{document}
+Hello there
+\end{document}
+%Run:default: 
+%:2:1:+ Opening brace at line 1, column 21 has no closing brace.
+%        Assuming closing brace exists here.
+%EndErrors
+

File test/files/docclass-missing.tex

+\begin{document}
+Hello, world.
+\end{document}
+%Run:empty: 
+
+%Run:forcefull: -f
+%:1:1: Expecting documentclass
+%EndErrors
+

File test/files/docclass-no-argument.tex

+\documentclass  hitheree
+\begin{document}
+Hello, world
+\end{document}
+%Run:default: 
+%:1:15: Expecting document class
+%EndErrors
+

File test/files/empty.tex

+% beginning comment
+
+\documentclass{article}
+% some comment
+
+\begin{document}
+
+\end{document}
+
+%Run:detect:
+
+%Run:fulldoc short: -f
+
+%Run:fulldoc long: --full-doc
+

File test/files/enddocument-missing.tex

+\documentclass{article}
+% a comment
+\begin{document}
+Hello world
+
+%Run:default: 
+%:10:1: Expecting \end{document}
+%EndErrors
+

File test/files/extra-after-end.tex

+\documentclass{  article5 }
+
+\begin{document}
+Hello, world
+\end{document}
+
+  some extra text here
+
+%Run:noarg: 
+%:7:3: Extra characters after \end{document}
+%EndErrors
+
+%Run:fulldoc: -f
+%:7:3: Extra characters after \end{document}
+%EndErrors
+

File test/generror.sh

 
 echo -n "Args: "
 read args
-errs=`../dist/build/lacandle/lacandle $args $1`
+s=`dirname $0`
+errs=`$s/../dist/build/lacandle/lacandle $args $1`
 echo "$errs"
 echo ""
 echo -n "Name: "

File test/test.hs

 
 main :: IO ()
 main = do
-    files <- sort <$> loadFiles ("test" </> "tex")
+    files <- sort <$> loadFiles ("test" </> "files")
     params <- mapM (\f -> findParams <$> TLIO.readFile f) files
     defaultMain [ testGroup "Files" $ zipWith fileTest files params ]

File test/tex/begindocument-missing.tex

-\documentclass{article}
-
-Hello
-%Run:default: 
-%:9:1: Expecting \begin{document}
-%:9:1: Expecting \end{document}
-%EndErrors
-

File test/tex/docclass-bad-arg.tex

-\documentclass[arg1 , , arg2]{article}
-\begin{document}
-Hello world
-\end{document}
-%Run:default: 
-%:1:23: Expecting an optional argument
-%EndErrors
-

File test/tex/docclass-good-arg.tex

-\documentclass[ arg1, arg2,arg3, hi] { article}
-
-\begin{document}
-
-\end{document}

File test/tex/docclass-invalid-chars-arg.tex

-\documentclass[arg1, arg2,arg3, a$#^ ]{article}
-\begin{document}
-Hello, world
-\end{document}
-%Run:default: 
-%:1:34-39: Invalid characters in optional argument
-%EndErrors
-

File test/tex/docclass-invalid-chars-doctype.tex

-\documentclass[arg1]{ article &@# }
-\begin{document}
-Hello world
-\end{document}
-%Run:default: 
-%:1:31-36: Invalid characters in command argument
-%EndErrors
-

File test/tex/docclass-missing-end-arg.tex

-\documentclass[arg1, arg2 {article}
-\begin{document}
-Hello, world
-\end{document}
-%Run:default: 
-%:1:27:+ Opening bracket at line 1, column 15 has no closing bracket.
-%        Assuming closing bracket exists here.
-%EndErrors
-

File test/tex/docclass-missing-end-brace.tex

-\documentclass[arg1]{article
-% a comment
-\begin{document}
-Hello there
-\end{document}
-%Run:default: 
-%:2:1:+ Opening brace at line 1, column 21 has no closing brace.
-%        Assuming closing brace exists here.
-%EndErrors
-

File test/tex/docclass-missing.tex

-\begin{document}
-Hello, world.
-\end{document}
-%Run:empty: 
-
-%Run:forcefull: -f
-%:1:1: Expecting documentclass
-%EndErrors
-

File test/tex/docclass-no-argument.tex

-\documentclass  hitheree
-\begin{document}
-Hello, world
-\end{document}
-%Run:default: 
-%:1:15: Expecting document class
-%EndErrors
-

File test/tex/empty.tex

-% beginning comment
-
-\documentclass{article}
-% some comment
-
-\begin{document}
-
-\end{document}
-
-%Run:detect:
-
-%Run:fulldoc short: -f
-
-%Run:fulldoc long: --full-doc
-

File test/tex/enddocument-missing.tex

-\documentclass{article}
-% a comment
-\begin{document}
-Hello world
-
-%Run:default: 
-%:10:1: Expecting \end{document}
-%EndErrors
-

File test/tex/extra-after-end.tex

-\documentclass{  article5 }
-
-\begin{document}
-Hello, world
-\end{document}
-
-  some extra text here
-
-%Run:noarg: 
-%:7:3: Extra characters after \end{document}
-%EndErrors
-
-%Run:fulldoc: -f
-%:7:3: Extra characters after \end{document}
-%EndErrors
-