1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/test/Data/Mergeable/Spec.hs

14 lines
293 B
Haskell
Raw Normal View History

module Data.Mergeable.Spec where
2016-07-26 10:58:14 +03:00
import Data.Functor.Identity
import Data.Mergeable
2016-07-26 10:58:14 +03:00
import Prologue
import Test.Hspec
import Test.Hspec.QuickCheck
2016-07-26 10:58:14 +03:00
spec :: Spec
spec = do
describe "sequenceAlt" $ do
prop "identity" $
\ a -> sequenceAlt (fmap Just a) `shouldBe` Just (a :: [Char])