summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlbert Krewinkel <tarleb@moltkeplatz.de>2014-04-06 14:49:57 +0200
committerAlbert Krewinkel <tarleb@moltkeplatz.de>2014-04-06 20:39:10 +0200
commit480b33b7100048ef3fad51754ae76c21daa8b86f (patch)
tree5f9032aa4c3ee9b3cbc6505237b0332a1f3b04e5 /tests
parent4ebf6f6ebf7d679252ade08203ec13e3e92c2db5 (diff)
Org reader: Add support for definition lists
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Org.hs26
1 files changed, 23 insertions, 3 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 1088d6611..eb9f4d741 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -43,8 +43,8 @@ tests =
para (strong "Cider")
, "Strong Emphasis" =:
- "/*strength*/" =?>
- para (emph . strong $ "strength")
+ "/*strength*/" =?>
+ para (emph . strong $ "strength")
, "Strikeout" =:
"+Kill Bill+" =?>
@@ -428,7 +428,27 @@ tests =
, "Bullet List in Ordered List" =:
("1. GNU\n" ++
" - Freedom\n") =?>
- orderedList [ (para "GNU") <> bulletList [ (plain "Freedom") ] ]
+ orderedList [ (para "GNU") <> bulletList [ (plain "Freedom") ] ]
+
+ , "Definition List" =:
+ unlines [ "- PLL :: phase-locked loop"
+ , "- TTL ::"
+ , " transistor-transistor logic"
+ , "- PSK::phase-shift keying"
+ , ""
+ , " a digital modulation scheme"
+ ] =?>
+ definitionList [ ("PLL", [ plain $ "phase-locked" <> space <> "loop" ])
+ , ("TTL", [ plain $ "transistor-transistor" <> space <>
+ "logic" ])
+ , ("PSK", [ mconcat
+ [ para $ "phase-shift" <> space <> "keying"
+ , plain $ spcSep [ "a", "digital"
+ , "modulation", "scheme" ]
+ ]
+ ]
+ )
+ ]
]
, testGroup "Tables"