Skip to content

Commit 61ce30f

Browse files
committed
Print Ints in quickCheck results
1 parent 42dda5e commit 61ce30f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Test/QuickCheck.purs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)