Skip to content

Commit

Permalink
react to review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianAlgehed committed Mar 19, 2024
1 parent 3fe9e7d commit ae72e02
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/DiscardRatio.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,10 @@ assert _ _ = pure ()
quickCheckYes, quickCheckNo :: Property -> IO ()
quickCheckYes p = do
res <- quickCheckResult p
if isSuccess res
then pure ()
else exitFailure
unless (isSuccess res) exitFailure
quickCheckNo p = do
res <- quickCheckResult p
if isSuccess res
then exitFailure
else pure ()
when (isSuccess res) exitFailure

check :: Result -> Int -> Int -> IO ()
check res n d = do
Expand Down

0 comments on commit ae72e02

Please sign in to comment.