summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-09-01 09:13:31 -0700
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-09-01 09:13:31 -0700
commit9282f632786e85c7a31f974f20162214c5387c00 (patch)
tree7389293047cc9b6a43d22ac5ed8364c15de5c109 /tests/Tests/Readers
parent6ed41fdfcc3b57e88cf98b875a75ab5e1629dca6 (diff)
Use registerHeader in RST and LaTeX readers.
This will give automatic unique identifiers, unless `-auto_identifiers` is specified.
Diffstat (limited to 'tests/Tests/Readers')
-rw-r--r--tests/Tests/Readers/LaTeX.hs10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Tests/Readers/LaTeX.hs b/tests/Tests/Readers/LaTeX.hs
index dff6e4537..c1efd1b68 100644
--- a/tests/Tests/Readers/LaTeX.hs
+++ b/tests/Tests/Readers/LaTeX.hs
@@ -28,17 +28,17 @@ tests = [ testGroup "basic"
, testGroup "headers"
[ "level 1" =:
- "\\section{header}" =?> header 1 "header"
+ "\\section{header}" =?> headerWith ("header",[],[]) 1 "header"
, "level 2" =:
- "\\subsection{header}" =?> header 2 "header"
+ "\\subsection{header}" =?> headerWith ("header",[],[]) 2 "header"
, "level 3" =:
- "\\subsubsection{header}" =?> header 3 "header"
+ "\\subsubsection{header}" =?> headerWith ("header",[],[]) 3 "header"
, "emph" =:
"\\section{text \\emph{emph}}" =?>
- header 1 ("text" <> space <> emph "emph")
+ headerWith ("text-emph",[],[]) 1 ("text" <> space <> emph "emph")
, "link" =:
"\\section{text \\href{/url}{link}}" =?>
- header 1 ("text" <> space <> link "/url" "" "link")
+ headerWith ("text-link",[],[]) 1 ("text" <> space <> link "/url" "" "link")
]
, testGroup "math"