Skip to content

Commit 3bf2bcb

Browse files
committed
Run unit tests only once
By default they’re run 100 times which gives false impression that there’s some sort of property being tested.
1 parent 6ad7073 commit 3bf2bcb

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

zlib/test/Test.hs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,18 +44,18 @@ main = defaultMain $
4444
testProperty "compress works with BSes with non-zero offset" prop_compress_nonzero_bs_offset
4545
],
4646
testGroup "unit tests" [
47-
testProperty "simple gzip case" test_simple_gzip,
48-
testProperty "detect bad CRC" test_bad_crc,
49-
testProperty "detect non-gzip" test_non_gzip,
50-
testProperty "detect custom dictionary" test_custom_dict,
51-
testProperty "detect inflate with wrong dict" test_wrong_dictionary,
52-
testProperty "detect inflate with right dict" test_right_dictionary,
53-
testProperty "handle trailing data" test_trailing_data,
54-
testProperty "multiple gzip members" test_multiple_members,
55-
testProperty "check small input chunks" test_small_chunks,
56-
testProperty "check empty input" test_empty,
57-
testProperty "check exception raised" test_exception,
58-
testProperty "check compress large chunk" test_compress_large_chunk
47+
testProperty "simple gzip case" $ once test_simple_gzip,
48+
testProperty "detect bad CRC" $ once test_bad_crc,
49+
testProperty "detect non-gzip" $ once test_non_gzip,
50+
testProperty "detect custom dictionary" $ once test_custom_dict,
51+
testProperty "detect inflate with wrong dict" $ once test_wrong_dictionary,
52+
testProperty "detect inflate with right dict" $ once test_right_dictionary,
53+
testProperty "handle trailing data" $ once test_trailing_data,
54+
testProperty "multiple gzip members" $ once test_multiple_members,
55+
testProperty "check small input chunks" $ once test_small_chunks,
56+
testProperty "check empty input" $ once test_empty,
57+
testProperty "check exception raised" $ once test_exception,
58+
testProperty "check compress large chunk" $ once test_compress_large_chunk
5959
]
6060
]
6161

0 commit comments

Comments
 (0)