Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
unix
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ian-Woo Kim
unix
Commits
29a61316
Commit
29a61316
authored
1 year ago
by
Bodigrim
Committed by
Bodigrim
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Test withFilePath: increase number of tests
parent
87c4b73a
Branches
master
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/Test.hs
+11
-10
11 additions, 10 deletions
tests/Test.hs
with
11 additions
and
10 deletions
tests/Test.hs
+
11
−
10
View file @
29a61316
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment