Skip to content

Commit 9d26976

Browse files
committed
Tests for Sum, Product, All and Any
1 parent 34ffbf6 commit 9d26976

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PropertyRoundTrip.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import Test.Tasty (TestTree, testGroup)
2929
import Test.Tasty.QuickCheck (testProperty)
3030
import Types
3131
import qualified Data.Monoid as Monoid
32+
import qualified Data.Semigroup as Semigroup
3233
import qualified Data.Text as T
3334
import qualified Data.Text.Lazy as LT
3435
import qualified Data.Text.Short as ST
@@ -87,6 +88,10 @@ roundTripTests =
8788
, testProperty "Nu" $ roundTripEq @(F.Nu (These Char))
8889
, testProperty "Maybe" $ roundTripEq @(Maybe Int)
8990
, testProperty "Monoid.First" $ roundTripEq @(Monoid.First Int)
91+
, testProperty "Semigroup.Sum" $ roundTripEq @(Semigroup.Sum Int)
92+
, testProperty "Semigroup.Product" $ roundTripEq @(Semigroup.Product Int)
93+
, testProperty "Semigroup.All" $ roundTripEq @Semigroup.All
94+
, testProperty "Semigroup.Any" $ roundTripEq @Semigroup.Any
9095
, testProperty "Strict Pair" $ roundTripEq @(S.Pair Int Char)
9196
, testProperty "Strict Either" $ roundTripEq @(S.Either Int Char)
9297
, testProperty "Strict These" $ roundTripEq @(S.These Int Char)

0 commit comments

Comments
 (0)