OrderedBits-0.0.0.2: Efficient ordered (by popcount) enumeration of bits

Safe HaskellNone
LanguageHaskell2010

Data.Bits.Ordered.QuickCheck

Description

Check a number of properties for popcount-ordered elements.

$setup

>>> :set -XScopedTypeVariables

Synopsis

Documentation

prop_PopCountSet :: NonZero Int16 -> Bool Source

Check if both the memoized version and the population enumeration produce the same multisets, but maybe in different order.

\(n :: Int16) -> let b = popCount n in memoSorted b == enumSorted b