cuckoo-filter 0.2.0.1 → 0.2.0.2
raw patch · 2 files changed
+4/−4 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- cuckoo-filter.cabal +2/−2
- test/Spec.hs +2/−2
cuckoo-filter.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 10e4a9c36733e569b2f34e1705f635a2195378da353585ba96b142feb54122e3+-- hash: 1cdf9769c1d7699894d243efd2497e42d871f60f884bdffb2ef052766c952336 name: cuckoo-filter-version: 0.2.0.1+version: 0.2.0.2 synopsis: Pure and impure Cuckoo Filter description: Please see the README on Github at <https://github.com/ChrisCoffey/cuckoo-filter#readme> category: Data
test/Spec.hs view
@@ -6,7 +6,7 @@ import Control.Monad (foldM, replicateM) import Data.Functor.Identity (runIdentity) import Data.Hashable (Hashable)-import Data.Maybe (isJust, isNothing)+import Data.Maybe (isJust, isNothing, fromMaybe) import Data.Word import Numeric.Natural (Natural) @@ -20,7 +20,7 @@ tests = testGroup "Data.CuckooFilter" [ -- testProperty "insert x increases load factor" undefined, testProperty "insert x >> delete x is idempotent" $ \s -> runIdentity $ do- Just f <- insert defaultFilter s+ f <- fromMaybe defaultFilter <$> insert defaultFilter s f' <- delete f s not <$> member s f'