ouroboros-consensus-test-0.1.0.0: Tests of the consensus layer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Util.Shrink

Description

Utility functions for defining QuickCheck's shrink

Synopsis
  • andId ∷ (a → [a]) → a → [a]
  • dropId ∷ [a] → [a]

Documentation

andId ∷ (a → [a]) → a → [a] Source #

Add the argument as the last element of the output

dropId ∷ [a] → [a] Source #

Drop the last element

If every source list in a comprehension uses andId, then the last element will be a copy of the initial input.