Skip to content

Commit 29a6131

Browse files
committed
Test withFilePath: increase number of tests
1 parent 87c4b73 commit 29a6131

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

tests/Test.hs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -254,16 +254,17 @@ posix010 = testCase "posix010" $ do
254254

255255
testWithFilePath :: TestTree
256256
testWithFilePath =
257-
testGroup "withFilePath"
258-
[ testProperty "ByteString" $
259-
\xs -> let ys = B.pack $ filter (/= 0) xs in
260-
ioProperty $ BSFP.withFilePath ys
261-
(\ptr -> (=== ys) <$> B.packCString ptr)
262-
, testProperty "PosixPath" $
263-
\xs -> let ys = Sh.pack $ filter (/= 0) xs in
264-
ioProperty $ PPFP.withFilePath (PosixString ys)
265-
(\ptr -> (=== ys) <$> Sh.packCString ptr)
266-
]
257+
adjustOption (\(QuickCheckTests n) -> QuickCheckTests (n `max` 10000)) $
258+
testGroup "withFilePath"
259+
[ testProperty "ByteString" $
260+
\xs -> let ys = B.pack $ filter (/= 0) xs in
261+
ioProperty $ BSFP.withFilePath ys
262+
(\ptr -> (=== ys) <$> B.packCString ptr)
263+
, testProperty "PosixPath" $
264+
\xs -> let ys = Sh.pack $ filter (/= 0) xs in
265+
ioProperty $ PPFP.withFilePath (PosixString ys)
266+
(\ptr -> (=== ys) <$> Sh.packCString ptr)
267+
]
267268

268269
-------------------------------------------------------------------------------
269270
-- Utils

0 commit comments

Comments
 (0)