Applicative package:genvalidity-sydtest

Applicative properties You will need TypeApplications to use these.
Standard test spec for properties of Applicative instances for values generated with GenUnchecked instances Example usage:
applicativeSpecOnArbitrary @[]
Standard test spec for properties of Applicative instances for values generated with Arbitrary instances Example usage:
applicativeSpecOnArbitrary @[]
Standard test spec for properties of Applicative instances for values generated by given generators (and names for those generator). Unless you are building a specific regression test, you probably want to use the other applicativeSpec functions. Example usage:
applicativeSpecOnGens
@Maybe
@String
(pure "ABC")
"ABC"
(Just <$> pure "ABC")
"Just an ABC"
(pure Nothing)
"purely Nothing"
((++) <$> genValid)
"prepends"
(pure <$> ((++) <$> genValid))
"prepends in a Just"
(pure <$> (flip (++) <$> genValid))
"appends in a Just"
Standard test spec for properties of Applicative instances for values generated with GenValid instances Example usage:
applicativeSpecOnArbitrary @[]