fixed a different way this test case could fail in LANG=C
This commit is contained in:
parent
ac858df32c
commit
f603fc252d
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ prop_parse_show_Config c
|
|||
-- whitespace and '=' are not supported in config keys
|
||||
| any (\k -> any isSpace k || elem '=' k) (M.keys c) = True
|
||||
-- limit to alphanumerics for simplicity
|
||||
| any (not . all isAlphaNum) (M.keys c) = True
|
||||
| any (any (not . isAlphaNum)) (M.keys c) = True
|
||||
| any (any (not . isAlphaNum)) (M.elems c) = True
|
||||
| otherwise = A.parseOnly remoteConfigParser (encodeBS $ showConfig c) ~~ Right c
|
||||
where
|
||||
normalize v = sort . M.toList <$> v
|
||||
|
|
Loading…
Reference in a new issue