We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb5f16f commit 0479001Copy full SHA for 0479001
1 file changed
ouroboros-network-protocols/testlib/Test/ChainGenerators.hs
@@ -97,16 +97,6 @@ tests = testGroup "Chain"
97
(mapSize (min 40) prop_shrink_TestChainFork)
98
]
99
100
-
101
-instance Arbitrary BlockNo where
102
- arbitrary = BlockNo <$>
103
- ((getPositive <$> arbitrary)
104
- `suchThat`
105
- (\n -> n < maxBound - 2^(32 :: Int)))
106
- -- need some room, we're assuming we'll never wrap around 64bits
107
108
- shrink (BlockNo n) = [ BlockNo n' | n' <- shrink n, n' > 0 ]
109
110
instance Arbitrary ConcreteHeaderHash where
111
arbitrary = HeaderHash <$> arbitrary
112
0 commit comments