Skip to content

Commit

Permalink
Tests for Sum, Product, All and Any
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceRixte committed Jun 11, 2024
1 parent 34ffbf6 commit 9d26976
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/PropertyRoundTrip.hs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import Test.Tasty (TestTree, testGroup)
import Test.Tasty.QuickCheck (testProperty)
import Types
import qualified Data.Monoid as Monoid
import qualified Data.Semigroup as Semigroup
import qualified Data.Text as T
import qualified Data.Text.Lazy as LT
import qualified Data.Text.Short as ST
Expand Down Expand Up @@ -87,6 +88,10 @@ roundTripTests =
, testProperty "Nu" $ roundTripEq @(F.Nu (These Char))
, testProperty "Maybe" $ roundTripEq @(Maybe Int)
, testProperty "Monoid.First" $ roundTripEq @(Monoid.First Int)
, testProperty "Semigroup.Sum" $ roundTripEq @(Semigroup.Sum Int)
, testProperty "Semigroup.Product" $ roundTripEq @(Semigroup.Product Int)
, testProperty "Semigroup.All" $ roundTripEq @Semigroup.All
, testProperty "Semigroup.Any" $ roundTripEq @Semigroup.Any
, testProperty "Strict Pair" $ roundTripEq @(S.Pair Int Char)
, testProperty "Strict Either" $ roundTripEq @(S.Either Int Char)
, testProperty "Strict These" $ roundTripEq @(S.These Int Char)
Expand Down

0 comments on commit 9d26976

Please sign in to comment.