fix quickcheck failure
prop_encode_decode_roundtrip failed on "\175" in C locale. This may be a new problem after the switch to RawFilePath, but it already had filtering for high chars, so changed to only test ascii chars.
This commit is contained in:
parent
91ec283be6
commit
e006acc8e3
2 changed files with 7 additions and 7 deletions
|
@ -46,8 +46,8 @@ prop_encode_decode_roundtrip s = s' ==
|
|||
-- "\343\200\271".
|
||||
--
|
||||
-- This property papers over the problem, by only
|
||||
-- testing chars < 256.
|
||||
nohigh = filter (\c -> ord c < 256)
|
||||
-- testing ascii
|
||||
nohigh = filter isAscii
|
||||
-- A String can contain a NUL, but toRawFilePath
|
||||
-- truncates on the NUL, which is generally fine
|
||||
-- because unix filenames cannot contain NUL.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue