Skip to content

Commit

Permalink
Tweak 'cover' example code in haddocks (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhrcek authored Jan 27, 2022
1 parent 2c6c442 commit c7d7a27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hedgehog/src/Hedgehog/Internal/Property.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1248,8 +1248,8 @@ journalCoverage (Journal logs) =
-- prop_with_coverage =
-- property $ do
-- match <- forAll Gen.bool
-- cover 30 "True" $ match
-- cover 30 "False" $ not match
-- cover 30 \"True\" $ match
-- cover 30 \"False\" $ not match
-- @
--
-- The example above requires a minimum of 30% coverage for both
Expand Down

0 comments on commit c7d7a27

Please sign in to comment.