File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,14 +46,14 @@ quickCheck' n prop = do
4646 seed <- randomSeed
4747 let results = quickCheckPure seed n prop
4848 let successes = countSuccesses results
49- log $ show (toNumber successes) ++ " /" ++ show (toNumber n) ++ " test(s) passed."
49+ log $ show successes ++ " /" ++ show n ++ " test(s) passed."
5050 throwOnFirstFailure one results
5151
5252 where
5353
5454 throwOnFirstFailure :: Int -> List Result -> QC Unit
5555 throwOnFirstFailure _ Nil = return unit
56- throwOnFirstFailure n (Cons (Failed msg) _) = throwException $ error $ " Test " ++ show (toNumber n) ++ " failed: \n " ++ msg
56+ throwOnFirstFailure n (Cons (Failed msg) _) = throwException $ error $ " Test " ++ show n ++ " failed: \n " ++ msg
5757 throwOnFirstFailure n (Cons _ rest) = throwOnFirstFailure (n + one) rest
5858
5959 countSuccesses :: List Result -> Int
You can’t perform that action at this time.
0 commit comments