git.iko.soy/typeable/pandoc
on master help sign in
Fixed test, added another markdown emph/strong test.
commit9b5f1cba212f77c2aa3c6b28cbb3c000d805fcd8 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 22 Jun 2011, 20:37 (15 years ago) parent5611057
1 file changed+7−3
src/Tests/Readers/Markdown.hs+7−3
src/Tests/Readers/Markdown.hs+7−3
@@ -40,12 +40,16 @@ tests = [ testGroup "inline code"
4040 "`*` {.haskell .special x=\"7\"}"
4141 =?> para (codeWith ("",["haskell","special"],[("x","7")]) "*")
4242 ]
43− , testGroup "emphasis and strong"
44− [ "mixed emph and strong" =:
43+ , testGroup "mixed emphasis and strong"
44+ [ "emph and strong emph alternating" =:
4545 "*xxx* ***xxx*** xxx\n*xxx* ***xxx*** xxx"
4646 =?> para (emph "xxx" +++ space +++ strong (emph "xxx") +++
4747 space +++ "xxx" +++ space +++
48− emph "xxx" +++ space +++ strong (emph "xxx"))
48+ emph "xxx" +++ space +++ strong (emph "xxx") +++
49+ space +++ "xxx")
50+ , "emph with spaced strong" =:
51+ "*x **xx** x*"
52+ =?> para (emph ("x" +++ space +++ strong "xx" +++ space +++ "x"))
4953 ]
5054 , testGroup "footnotes"
5155 [ "indent followed by newline and flush-left text" =: