Safe Haskell | None |
---|
Common tests for PartialParams instances
Synopsis
- testFillParamsLaw1 :: (PartialParams f p, Show f, Eq f) => f -> p -> Property
- testToParamsLaw2 :: (PartialParams f p, Show f, Eq f) => f -> f -> Property
- testToFilledLaw3 :: (PartialParams f p, Show f, Eq f) => f -> Property
- testToFilledMonoidLaw1 :: (PartialParams f p, Show f, Eq f, Monoid p) => f -> Property
- testToFilledMonoidLaw2 :: (PartialParams f p, Show f, Eq f, Monoid p) => f -> p -> p -> Property
Documentation
testFillParamsLaw1 :: (PartialParams f p, Show f, Eq f) => f -> p -> Property Source #
Checks for serialisation idempotence.
testToParamsLaw2 :: (PartialParams f p, Show f, Eq f) => f -> f -> Property Source #
Tests that filling partial parameters satisfies the law.
testToFilledLaw3 :: (PartialParams f p, Show f, Eq f) => f -> Property Source #
Tests that converting partial to filled parameters satisfies the law.
testToFilledMonoidLaw1 :: (PartialParams f p, Show f, Eq f, Monoid p) => f -> Property Source #
Tests that the partial params behave correctly as a monoid action.
testToFilledMonoidLaw2 :: (PartialParams f p, Show f, Eq f, Monoid p) => f -> p -> p -> Property Source #
Tests that the partial params behave correctly as a monoid action.