mirror of
https://github.com/github/semantic.git
synced 2024-12-29 18:06:14 +03:00
Factor the sequenceAlt law properties into a separate function.
This commit is contained in:
parent
93c53ed90a
commit
fa3b7d126e
@ -8,6 +8,10 @@ import Test.Hspec.QuickCheck
|
||||
|
||||
spec :: Spec
|
||||
spec = do
|
||||
sequenceAltLaws
|
||||
|
||||
sequenceAltLaws :: Spec
|
||||
sequenceAltLaws = do
|
||||
describe "sequenceAlt" $ do
|
||||
prop "identity" $
|
||||
\ a -> sequenceAlt (fmap Just a) `shouldBe` Just (a :: [Char])
|
||||
|
Loading…
Reference in New Issue
Block a user