fix inverted logic
This commit is contained in:
parent
a254abfe78
commit
0aea1a7b93
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ prop_parse_show_Config c
|
||||||
-- whitespace and '=' are not supported in config keys
|
-- whitespace and '=' are not supported in config keys
|
||||||
| any (\k -> any isSpace k || elem '=' k) (M.keys c) = True
|
| any (\k -> any isSpace k || elem '=' k) (M.keys c) = True
|
||||||
-- limit to alphanumerics for simplicity
|
-- limit to alphanumerics for simplicity
|
||||||
| any (all isAlphaNum) (M.keys c) = True
|
| any (not . all isAlphaNum) (M.keys c) = True
|
||||||
| otherwise = A.parseOnly remoteConfigParser (encodeBS $ showConfig c) ~~ Right c
|
| otherwise = A.parseOnly remoteConfigParser (encodeBS $ showConfig c) ~~ Right c
|
||||||
where
|
where
|
||||||
normalize v = sort . M.toList <$> v
|
normalize v = sort . M.toList <$> v
|
||||||
|
|
Loading…
Reference in a new issue