summaryrefslogtreecommitdiff
path: root/src/Tests/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2011-06-22 20:37:57 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2011-06-22 20:37:57 -0700
commit9b5f1cba212f77c2aa3c6b28cbb3c000d805fcd8 (patch)
treeea1c65ce15df0a9b2db9384082726b154c622794 /src/Tests/Readers
parent5611057e06431de32a0c832367c6a8942585fb39 (diff)
Fixed test, added another markdown emph/strong test.
Diffstat (limited to 'src/Tests/Readers')
-rw-r--r--src/Tests/Readers/Markdown.hs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Tests/Readers/Markdown.hs b/src/Tests/Readers/Markdown.hs
index db9d8bd59..c0eb672ca 100644
--- a/src/Tests/Readers/Markdown.hs
+++ b/src/Tests/Readers/Markdown.hs
@@ -40,12 +40,16 @@ tests = [ testGroup "inline code"
"`*` {.haskell .special x=\"7\"}"
=?> para (codeWith ("",["haskell","special"],[("x","7")]) "*")
]
- , testGroup "emphasis and strong"
- [ "mixed emph and strong" =:
+ , testGroup "mixed emphasis and strong"
+ [ "emph and strong emph alternating" =:
"*xxx* ***xxx*** xxx\n*xxx* ***xxx*** xxx"
=?> para (emph "xxx" +++ space +++ strong (emph "xxx") +++
space +++ "xxx" +++ space +++
- emph "xxx" +++ space +++ strong (emph "xxx"))
+ emph "xxx" +++ space +++ strong (emph "xxx") +++
+ space +++ "xxx")
+ , "emph with spaced strong" =:
+ "*x **xx** x*"
+ =?> para (emph ("x" +++ space +++ strong "xx" +++ space +++ "x"))
]
, testGroup "footnotes"
[ "indent followed by newline and flush-left text" =: