tasty-quickcheck-laws-0.0.3: Pre-built tasty trees for checking lawful class properties using QuickCheck

Copyright2019 Automattic Inc.
LicenseBSD3
MaintainerNathan Bloomfield (nbloomf@gmail.com)
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Test.Tasty.QuickCheck.Laws.Semigroup

Contents

Description

 
Synopsis

Documentation

testSemigroupLaws :: (Semigroup a, Eq a, Show a, Arbitrary a, Typeable a) => Proxy a -> TestTree Source #

Constructs a TestTree checking that the Semigroup class laws hold for a.

Semigroup Laws

testSemigroupLawAssociative :: (Semigroup a, Eq a, Show a, Arbitrary a) => Proxy a -> TestTree Source #

(a <> b) <> c === a <> (b <> c)