@@ -44,6 +44,8 @@ import Test.QuickCheck
4444import Test.Tasty (TestTree , testGroup )
4545import Test.Tasty.HUnit (assertEqual , testCase )
4646import Test.Tasty.QuickCheck (testProperty )
47+ import Test.Util.Arbitrary (noTags ,
48+ prop_arbitraryAndShrinkPreserveInvariant )
4749import Test.Util.Orphans ()
4850import Text.Printf (printf )
4951
@@ -58,12 +60,9 @@ tests = testGroup "Test.Database.LSMTree.Internal.Index.Compact" [
5860 , testProperty " prop_singlesEquivMulti" $
5961 prop_singlesEquivMulti @ BiasedKeyForIndexCompact
6062 , testGroup " (De)serialisation" [
61- testGroup " test Chunks generator" [
62- testProperty " Arbitrary satisfies invariant" $
63- property . chunksInvariant
64- , testProperty " Shrinking satisfies invariant" $
65- property . all chunksInvariant . shrink @ Chunks
66- ]
63+ testGroup " Chunks generator" $
64+ prop_arbitraryAndShrinkPreserveInvariant noTags chunksInvariant
65+
6766 , testCase " index-2-clash" $ do
6867 let k1 = SerialisedKey' (VP. replicate 16 0x00 )
6968 let k2 = SerialisedKey' (VP. replicate 16 0x11 )
0 commit comments