Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- genTokenBundleSmallRange :: Gen TokenBundle
- genTokenBundleSmallRangePositive :: Gen TokenBundle
- genTokenBundle :: Gen TokenBundle
- shrinkTokenBundle :: TokenBundle -> [ TokenBundle ]
- shrinkTokenBundleSmallRange :: TokenBundle -> [ TokenBundle ]
- shrinkTokenBundleSmallRangePositive :: TokenBundle -> [ TokenBundle ]
- genTokenBundlePartition :: TokenBundle -> Int -> Gen ( NonEmpty TokenBundle )
- genTokenBundlePartitionNonNull :: TokenBundle -> Int -> Gen [ TokenBundle ]
Documentation
shrinkTokenBundle :: TokenBundle -> [ TokenBundle ] Source #
shrinkTokenBundleSmallRange :: TokenBundle -> [ TokenBundle ] Source #
genTokenBundlePartition :: TokenBundle -> Int -> Gen ( NonEmpty TokenBundle ) Source #
Partitions a token bundle randomly into a given number of parts.
Satisfies the following properties:
forAll (genTokenBundlePartition b i) $ (== b) . fold
forAll (genTokenBundlePartition b i) $ (== max 1 i) . length
genTokenBundlePartitionNonNull :: TokenBundle -> Int -> Gen [ TokenBundle ] Source #
Like
genTokenBundlePartition
, but with empty values removed from the
result.