summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-04-05 15:12:40 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-04-05 15:12:40 -0700
commit971dca588eea698c3a59a4da147180c138b16365 (patch)
tree7e279c164119e881c6f859171bb351fc54a4add8 /tests
parentc0309a60bc48e347e4b9d621ee38b84a98d0c187 (diff)
parent652c781e375f3678a0ec821663240d4958f324de (diff)
Merge pull request #1219 from tarleb/org-images
Org-reader: support inline images, clean-up code, fix bugs
Diffstat (limited to 'tests')
-rw-r--r--tests/Tests/Readers/Org.hs16
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/Tests/Readers/Org.hs b/tests/Tests/Readers/Org.hs
index 8c5982302..1088d6611 100644
--- a/tests/Tests/Readers/Org.hs
+++ b/tests/Tests/Readers/Org.hs
@@ -42,6 +42,10 @@ tests =
"*Cider*" =?>
para (strong "Cider")
+ , "Strong Emphasis" =:
+ "/*strength*/" =?>
+ para (emph . strong $ "strength")
+
, "Strikeout" =:
"+Kill Bill+" =?>
para (strikeout . spcSep $ [ "Kill", "Bill" ])
@@ -90,14 +94,22 @@ tests =
, (strong ("is" <> space <> "not"))
, "emph/" ])
+ , "Image" =:
+ "[[./sunset.jpg]]" =?>
+ (para $ image "./sunset.jpg" "" "")
+
, "Explicit link" =:
- "[[http://zeitlens.com/][pseudo-random nonsense]]" =?>
+ "[[http://zeitlens.com/][pseudo-random /nonsense/]]" =?>
(para $ link "http://zeitlens.com/" ""
- ("pseudo-random" <> space <> "nonsense"))
+ ("pseudo-random" <> space <> emph "nonsense"))
, "Self-link" =:
"[[http://zeitlens.com/]]" =?>
(para $ link "http://zeitlens.com/" "" "http://zeitlens.com/")
+
+ , "Image link" =:
+ "[[sunset.png][dusk.svg]]" =?>
+ (para $ link "sunset.png" "" (image "dusk.svg" "" ""))
]
, testGroup "Meta Information" $