leancheck-0.7.7: Enumerative property-based testing

Copyright(c) 2017-2018 Rudy Matela
License3-Clause BSD (see the file LICENSE)
MaintainerRudy Matela <rudy@matela.com.br>
Safe HaskellSafe
LanguageHaskell2010

Test.LeanCheck.Stats

Description

This module is part of LeanCheck, a simple enumerative property-based testing library.

This module exports functions to compute statistics of Listable instances.

Documentation

classStats :: (Listable a, Show b) => Int -> (a -> b) -> IO () Source #

classStatsT :: (Listable a, Show b) => Int -> (a -> b) -> IO () Source #

conditionStats :: Listable a => Int -> [(String, a -> Bool)] -> IO () Source #

conditionStatsT :: Listable a => Int -> [(String, a -> Bool)] -> IO () Source #

classify :: Eq a => [a] -> [[a]] Source #

classifyBy :: (a -> a -> Bool) -> [a] -> [[a]] Source #

classifyOn :: Eq b => (a -> b) -> [a] -> [[a]] Source #

counts :: Eq a => [a] -> [(a, Int)] Source #

countsBy :: (a -> a -> Bool) -> [a] -> [(a, Int)] Source #

countsOn :: Eq b => (a -> b) -> [a] -> [(b, Int)] Source #