Merge pull request #16 from ajmcmiddlin/fix-intOrLengthEven-test

Use function rather than solution in intOrLengthEven tests.
This commit is contained in:
Tony Morris 2019-02-01 11:46:02 +10:00 committed by GitHub
commit c137586b23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -783,13 +783,13 @@ intOrP =
-- |
--
-- >> over intOrP (even . length) (IntOrIsNot "abc")
-- >> intOrLengthEven (IntOrIsNot "abc")
-- IntOrIsNot False
--
-- >>> over intOrP (even . length) (IntOrIsNot "abcd")
-- >>> intOrLengthEven (IntOrIsNot "abcd")
-- IntOrIsNot True
--
-- >>> over intOrP (even . length) (IntOrIs 10)
-- >>> intOrLengthEven (IntOrIs 10)
-- IntOrIs 10
intOrLengthEven ::
IntOr [a]