mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Verify the merge laws over []/Maybe.
This commit is contained in:
parent
df4621622a
commit
5430f45850
@ -11,7 +11,9 @@ import Test.QuickCheck
|
||||
|
||||
spec :: Spec
|
||||
spec = parallel $ do
|
||||
describe "[]" $ sequenceAltLaws (arbitrary :: Gen [Char])
|
||||
describe "[]" $ do
|
||||
sequenceAltLaws (arbitrary :: Gen [Char])
|
||||
mergeLaws (arbitrary :: Gen [Char]) (arbitrary :: Gen (Blind (Char -> Maybe Char)))
|
||||
describe "Maybe" $ sequenceAltLaws (arbitrary :: Gen (Maybe Char))
|
||||
describe "Identity" $ sequenceAltLaws (Identity <$> arbitrary :: Gen (Identity Char))
|
||||
describe "Syntax" $ sequenceAltLaws (sized (syntaxOfSize (const arbitrary)) :: Gen (Syntax Char Char))
|
||||
|
Loading…
Reference in New Issue
Block a user