LaTeX Reader: Test for ^^ character escapes

This commit is contained in:
Nikolay Yakimov 2015-04-13 03:22:39 +03:00
parent b92d49092f
commit 251ce0738d

View file

@ -106,6 +106,16 @@ tests = [ testGroup "basic"
[ natbibCitations
, biblatexCitations
]
, let hex = ['0'..'9']++['a'..'f'] in
testGroup "Character Escapes"
[ "Two-character escapes" =:
concat ["^^"++[i,j] | i <- hex, j <- hex] =?>
para (str ['\0'..'\255'])
, "One-character escapes" =:
concat ["^^"++[i] | i <- hex] =?>
para (str $ ['p'..'y']++['!'..'&'])
]
]
baseCitation :: Citation