Skip to content

Commit

Permalink
fix SizeAndCapacity generating examples where size > capacity
Browse files Browse the repository at this point in the history
  • Loading branch information
fraser-iohk committed Jan 24, 2025
1 parent b893a99 commit 44cd74b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,8 @@ instance Arbitrary MeasureName where

instance Arbitrary (SizeAndCapacity Integer) where
arbitrary = do
Positive s <- arbitrary
c <- chooseInteger (0, s)
Positive c <- arbitrary
s <- chooseInteger (0, c)
pure $ SizeAndCapacity s c

instance Arbitrary MempoolSizeAndCapacity where
Expand Down

0 comments on commit 44cd74b

Please sign in to comment.