remove \r from Arbitrary for log tests
This commit is contained in:
parent
5418c8a23a
commit
176cd98293
1 changed files with 2 additions and 1 deletions
|
@ -99,7 +99,8 @@ instance Arbitrary LogLine where
|
||||||
arbitrary = LogLine
|
arbitrary = LogLine
|
||||||
<$> arbitrary
|
<$> arbitrary
|
||||||
<*> elements [minBound..maxBound]
|
<*> elements [minBound..maxBound]
|
||||||
<*> arbitrary `suchThat` ('\n' `notElem`)
|
<*> arbitrary `suchThat`
|
||||||
|
(\c -> '\n' `notElem` c && '\r' `notElem` c)
|
||||||
|
|
||||||
prop_parse_show_log :: [LogLine] -> Bool
|
prop_parse_show_log :: [LogLine] -> Bool
|
||||||
prop_parse_show_log l = parseLog (showLog l) == l
|
prop_parse_show_log l = parseLog (showLog l) == l
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue