summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander <ilabdsf@gmail.com>2017-08-25 17:09:28 +0300
committerJohn MacFarlane <jgm@berkeley.edu>2017-08-25 07:09:28 -0700
commite6f767b581742343bd7319bcc4c3632e18c58a70 (patch)
tree00f51770cab2d754769268ef25e594baf270763e /test
parentef209ebad2d8cff1e054ee1ba7f28b08d317f4cf (diff)
Muse reader: parse <verse> tag (#3872)
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Readers/Muse.hs21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs
index 8d4ad0b15..1f3218daf 100644
--- a/test/Tests/Readers/Muse.hs
+++ b/test/Tests/Readers/Muse.hs
@@ -147,6 +147,27 @@ tests =
blockQuote (para "This is a quotation with a continuation")
]
, "Quote tag" =: "<quote>Hello, world</quote>" =?> blockQuote (para $ text "Hello, world")
+ , "Verse tag" =:
+ T.unlines [ "<verse>"
+ , ""
+ , "Foo bar baz"
+ , " One two three"
+ , ""
+ , "</verse>"
+ , "<verse>Foo bar</verse>"
+ , "<verse>"
+ , "Foo bar</verse>"
+ , "<verse>"
+ , " Foo</verse>"
+ ] =?>
+ lineBlock [ ""
+ , text "Foo bar baz"
+ , text "\160\160One two three"
+ , ""
+ ] <>
+ lineBlock [ "Foo bar" ] <>
+ lineBlock [ "Foo bar" ] <>
+ lineBlock [ "\160\160\160Foo" ]
, "Center" =: "<center>Hello, world</center>" =?> para (text "Hello, world")
, "Right" =: "<right>Hello, world</right>" =?> para (text "Hello, world")
, testGroup "Comments"