1
1
mirror of https://github.com/github/semantic.git synced 2024-12-29 01:42:43 +03:00

Clean up the test with the Applicative instance.

This commit is contained in:
Rob Rix 2016-03-15 10:51:30 -04:00
parent b3bb9e2c3e
commit ab33fb3ace

View File

@ -9,4 +9,4 @@ spec :: Spec
spec = do
describe "Coalescent" $ do
it "should coalesce when both sides coalesce" $
(both (Line [True]) (Line [True]) `coalesce` both (Line [True]) (Line [True]) :: [Both (Line Bool)]) `shouldBe` [both (Line [True, True]) (Line [True, True])]
(pure (Line [True]) `coalesce` pure (Line [True]) :: [Both (Line Bool)]) `shouldBe` [pure (Line [True, True])]