aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-08-27 19:56:21 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-08-27 19:56:21 -0700
commitad9447cf92429929adda00ecbf1bdeb4b7502e6f (patch)
treec0a302528d85e1e05212a724467514f2d646e4ed /tests/Tests/Readers
parent1d91e2cdb380a22b8d988291d726dd1612318b80 (diff)
parent4e4c948b417a597f17bd8be12b6e981a87f00506 (diff)
downloadpandoc-ad9447cf92429929adda00ecbf1bdeb4b7502e6f.tar.gz
Merge branch 'master' of github.com:jgm/pandoc
Diffstat (limited to 'tests/Tests/Readers')
-rw-r--r--tests/Tests/Readers/LaTeX.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Tests/Readers/LaTeX.hs b/tests/Tests/Readers/LaTeX.hs
index 88029b7c2..dff6e4537 100644
--- a/tests/Tests/Readers/LaTeX.hs
+++ b/tests/Tests/Readers/LaTeX.hs
@@ -55,6 +55,13 @@ tests = [ testGroup "basic"
"hi % this is a comment\nthere\n" =?> para "hi there"
]
+ , testGroup "code blocks"
+ [ "identifier" =:
+ "\\begin{lstlisting}[label=test]\\end{lstlisting}" =?> codeBlockWith ("test", [], [("label","test")]) ""
+ , "no identifier" =:
+ "\\begin{lstlisting}\\end{lstlisting}" =?> codeBlock ""
+ ]
+
, testGroup "citations"
[ natbibCitations
, biblatexCitations