Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix shrinker for
ProtocolParameters
.
Currently, the shrinker 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`, we can get actual shrinking: ```hs > generate (arbitrary @ProtocolParameters) ProtocolParameters {decentralizationLevel = ...} > a = it > length $ shrink a 68 ```
- Loading branch information