Hoogle Search

Within LTS Haskell 24.65 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. validIfSucceedsOnArbitrary3 :: (Show a, Show b, Show c, Show d, Arbitrary a, Arbitrary b, Arbitrary c, Validity d, CanFail f) => (a -> b -> c -> f d) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  2. validIfSucceedsOnGen :: (Show a, Show b, Validity b, CanFail f) => (a -> f b) -> Gen a -> (a -> [a]) -> Property

    genvalidity-hspec Test.Validity

    The function produces output that satisfies isValid if it is given input that is generated by the given generator.

  3. validIfSucceedsOnGens2 :: (Show a, Show b, Show c, Validity c, CanFail f) => (a -> b -> f c) -> Gen (a, b) -> ((a, b) -> [(a, b)]) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  4. validIfSucceedsOnGens3 :: (Show a, Show b, Show c, Show d, Validity d, CanFail f) => (a -> b -> c -> f d) -> Gen (a, b, c) -> ((a, b, c) -> [(a, b, c)]) -> Property

    genvalidity-hspec Test.Validity

    No documentation available.

  5. arbitraryGeneratesOnlyValid :: (Show a, Validity a, Arbitrary a) => Property

    genvalidity-hspec Test.Validity.Arbitrary

    arbitrary only generates valid data

    arbitraryGeneratesOnlyValid @Int
    

  6. module Test.Validity.GenValidity

    Tests for GenValidity instances You will need TypeApplications to use these.

  7. genGeneratesInvalid :: (Show a, Validity a) => Gen a -> Property

    genvalidity-hspec Test.Validity.GenValidity

    The given generator generates only invalid data points

  8. genGeneratesValid :: (Show a, Validity a) => Gen a -> Property

    genvalidity-hspec Test.Validity.GenValidity

    The given generator generates only valid data points

  9. genValidGeneratesValid :: (Show a, GenValid a) => Property

    genvalidity-hspec Test.Validity.GenValidity

    genValid only generates valid data

    genValidGeneratesValid @()
    
    genValidGeneratesValid @Bool
    
    genValidGeneratesValid @Ordering
    
    genValidGeneratesValid @Char
    
    genValidGeneratesValid @Int
    
    genValidGeneratesValid @Float
    
    genValidGeneratesValid @Double
    
    genValidGeneratesValid @Integer
    
    genValidGeneratesValid @(Maybe Int)
    
    genValidGeneratesValid @[Int]
    

  10. genValidSpec :: (Typeable a, Show a, GenValid a) => Spec

    genvalidity-hspec Test.Validity.GenValidity

    A Spec that specifies that genValid only generates valid data. In general it is a good idea to add this spec to your test suite if you write a custom implementation of genValid. Example usage:

    genValidSpec @Int
    

Page 620 of many | Previous | Next