Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3205: Fix shrinker for `ProtocolParameters`. r=jonathanknowles a=jonathanknowles Currently, the shrinker for `ProtocolParameters` always returns the empty list: ```hs > :set -XTypeApplications > import Cardano.Wallet.Primitive.Types (ProtocolParameters) > import Cardano.Wallet.DB.Arbitrary > import Test.QuickCheck > generate (arbitrary `@ProtocolParameters)` ProtocolParameters {decentralizationLevel = ...} > a = it > shrink a [] ``` By using `genericRoundRobinShrink` from `Test.QuickCheck.Extra`, we can get actual shrinking: ```hs > generate (arbitrary `@ProtocolParameters)` ProtocolParameters {decentralizationLevel = ...} > a = it > length $ shrink a 68 ``` Co-authored-by: Jonathan Knowles <[email protected]>
- Loading branch information