Fixed tests for escapes in links.

This commit is contained in:
John MacFarlane
2011-12-05 21:13:06 -08:00
parent d34f85613a
commit e021819ade
+4 -4
View File
@@ -47,16 +47,16 @@ tests = [ testGroup "inline code"
, testGroup "backslash escapes"
[ "in URL" =:
"[hi](/there\\))"
=?> para (link "hi" "/there)" "")
=?> para (link "/there)" "" "hi")
, "in title" =:
"[hi](/there \"a\\\"a)"
=?> para (link "hi" "/there" "a\"a")
=?> para (link "/there" "a\"a" "hi")
, "in reference link title" =:
"[hi]\n\n[hi]: /there (a\\)a)"
=?> para (link "hi" "/there" "a)a")
=?> para (link "/there" "a)a" "hi")
, "in reference link URL" =:
"[hi]\n\n[hi]: /there\\."
=?> para (link "hi" "/there." "")
=?> para (link "/there." "" "hi")
]
, testGroup "smart punctuation"
[ test markdownSmart "quote before ellipses"