Skip to content
Snippets Groups Projects
Commit 29a61316 authored by Bodigrim's avatar Bodigrim Committed by Bodigrim
Browse files

Test withFilePath: increase number of tests

parent 87c4b73a
Branches master
No related tags found
No related merge requests found
...@@ -254,16 +254,17 @@ posix010 = testCase "posix010" $ do ...@@ -254,16 +254,17 @@ posix010 = testCase "posix010" $ do
testWithFilePath :: TestTree testWithFilePath :: TestTree
testWithFilePath = testWithFilePath =
testGroup "withFilePath" adjustOption (\(QuickCheckTests n) -> QuickCheckTests (n `max` 10000)) $
[ testProperty "ByteString" $ testGroup "withFilePath"
\xs -> let ys = B.pack $ filter (/= 0) xs in [ testProperty "ByteString" $
ioProperty $ BSFP.withFilePath ys \xs -> let ys = B.pack $ filter (/= 0) xs in
(\ptr -> (=== ys) <$> B.packCString ptr) ioProperty $ BSFP.withFilePath ys
, testProperty "PosixPath" $ (\ptr -> (=== ys) <$> B.packCString ptr)
\xs -> let ys = Sh.pack $ filter (/= 0) xs in , testProperty "PosixPath" $
ioProperty $ PPFP.withFilePath (PosixString ys) \xs -> let ys = Sh.pack $ filter (/= 0) xs in
(\ptr -> (=== ys) <$> Sh.packCString ptr) ioProperty $ PPFP.withFilePath (PosixString ys)
] (\ptr -> (=== ys) <$> Sh.packCString ptr)
]
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Utils -- Utils
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment