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

Run the monoid spec over coalesced strings.

This commit is contained in:
Rob Rix 2016-03-11 10:31:14 -05:00
parent 14234a7440
commit 8cfcd8b7bc

View File

@ -11,6 +11,7 @@ spec = do
prop "equality is reflexive" $
\ a -> a `shouldBe` (a :: Adjoined (Uncoalesced Char))
describe "Monoid (Coalesced)" $ monoid (arbitrary :: Gen (Adjoined (Coalesced String)))
describe "Monoid (Uncoalesced)" $ monoid (arbitrary :: Gen (Adjoined (Uncoalesced String)))
monoid :: (Arbitrary a, Coalescent a, Eq a, Show a) => Gen (Adjoined a) -> Spec