git.iko.soy/typeable/pandoc
on master help sign in
Man reader: Added more tests for escapes.

Closes #4983.

commit790ada894610d29c3fe6e06cd6b9a533ecf1b4c0 authorJohn MacFarlane <jgm@berkeley.edu> dateFri 19 Oct 2018, 15:36 (8 years ago) parent56c4a11
1 file changed+11−6
test/Tests/Readers/Man.hs+11−6
test/Tests/Readers/Man.hs+11−6
@@ -58,14 +58,19 @@ tests = [
5858 "\\-\\ \\\\\\[lq]\\[rq]\\[em]\\[en]\\*(lq\\*(rq"
5959 =?> (para $ text "- \\“”—–“”")
6060 , "replace2" =:
61− "\\t\\e\\`\\^\\|\\'"
62− =?> (para $ text "\\` `")
61+ "\\t\\e\\`\\^\\|\\'" =?> (para $ text "\\` `")
6362 , "comment with \\\"" =:
64− "Foo \\\" bar\n"
65− =?> (para $ text "Foo")
63+ "Foo \\\" bar\n" =?> (para $ text "Foo")
6664 , "comment with \\#" =:
67− "Foo\\#\nbar\n"
68− =?> (para $ text "Foobar")
65+ "Foo\\#\nbar\n" =?> (para $ text "Foobar")
66+ , "two letter escapes" =:
67+ "\\(oA\\(~O" =?> (para $ text "ÅÕ")
68+ , "bracketed escapes" =:
69+ "\\[oA]\\[~O]\\[Do]\\[Ye]\\[product]" =?> (para $ text "ÅÕ$¥∏")
70+ , "unicode escapes" =:
71+ "\\[u2020]" =?> (para $ text "†")
72+ , "unicode escapes (combined)" =:
73+ "\\[u0075_u0301]" =?> (para $ text "ú")
6974 ],
7075 testGroup "Lists" [
7176 "bullet" =: