aboutsummaryrefslogtreecommitdiff
path: root/tests/Tests/Readers/LaTeX.hs
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-08-25 20:48:38 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-08-25 20:48:38 -0700
commite7a4bcc6fed37afbba423e4c41df6043d7158b3f (patch)
tree8c6e59c1dcb6749262e87ba701b1dce736ab1123 /tests/Tests/Readers/LaTeX.hs
parenta68805bebd172b107e75fe330698cbc7eee7f75a (diff)
parent5f09cf7ff033ae11c5094fe39f8cd2ac11657229 (diff)
downloadpandoc-e7a4bcc6fed37afbba423e4c41df6043d7158b3f.tar.gz
Merge pull request #961 from nougad/add_latex_listings_label
Write id for code block to label attr in latex when listing is used
Diffstat (limited to 'tests/Tests/Readers/LaTeX.hs')
-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