LaTeX Reader: Test for ^^
character escapes
This commit is contained in:
parent
b92d49092f
commit
251ce0738d
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue