From a2470593d96e535a02ec851e0a5713325b97f265 Mon Sep 17 00:00:00 2001 From: kaBeech Date: Thu, 13 Jun 2024 01:25:04 -0700 Subject: [PATCH] Increase discard ratio so that tests won't prematurely fail --- test/TestCheck.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/TestCheck.hs b/test/TestCheck.hs index 8748c78..ef896b9 100644 --- a/test/TestCheck.hs +++ b/test/TestCheck.hs @@ -17,7 +17,7 @@ import Test.QuickCheck -- ...exit with failure check :: (Testable prop) => prop -> IO () check prop = do - result <- quickCheckResult prop + result <- quickCheckResult (withDiscardRatio 2000 prop) unless (isPass result) exitFailure -- | Returns True if a test passes, and False otherwise