Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
binary
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
Glasgow Haskell Compiler
Packages
binary
Commits
c61c26d1
Commit
c61c26d1
authored
18 years ago
by
Don Stewart
Browse files
Options
Downloads
Patches
Plain Diff
commet out lazy* tests
parent
8cc7c159
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/QC.hs
+6
-6
6 additions, 6 deletions
tests/QC.hs
with
6 additions
and
6 deletions
tests/QC.hs
+
6
−
6
View file @
c61c26d1
...
...
@@ -61,9 +61,9 @@ prop_invariant = invariant_lbs . encode
-- doesn't do fair testing of lazy put/get.
-- tons of untested cases
lazyTrip
::
(
Binary
a
,
Eq
a
)
=>
a
->
Property
lazyTrip
a
=
forAll
positiveList
$
\
xs
->
a
==
(
runGet
lazyGet
.
refragment
xs
.
runPut
.
lazyPut
$
a
)
--
lazyTrip :: (Binary a, Eq a) => a -> Property
--
lazyTrip a = forAll positiveList $ \xs ->
--
a == (runGet lazyGet . refragment xs . runPut . lazyPut $ a)
-- refragment a lazy bytestring's chunks
refragment
::
[
Int
]
->
L
.
ByteString
->
L
.
ByteString
...
...
@@ -159,12 +159,12 @@ tests =
p
(
test
::
T
(
Maybe
Word8
,
Bool
,
[
Int
],
Either
Bool
Word8
)
))
,(
"(Int, ByteString)"
,
p
(
test
::
T
(
Int
,
B
.
ByteString
)
))
,(
"Lazy (Int, ByteString)"
,
p
(
lazyTrip
::
T
(
Int
,
B
.
ByteString
)
))
--
,("Lazy (Int, ByteString)", p (lazyTrip :: T (Int, B.ByteString) ))
,(
"[(Int, ByteString)]"
,
p
(
test
::
T
[(
Int
,
B
.
ByteString
)]
))
,(
"Lazy [(Int, ByteString)]"
,
p
(
lazyTrip
::
T
[(
Int
,
B
.
ByteString
)]
))
--
,("Lazy [(Int, ByteString)]", p (lazyTrip :: T [(Int, B.ByteString)] ))
,(
"Lazy IntMap"
,
p
(
lazyTrip
::
T
IntSet
.
IntSet
))
--
,("Lazy IntMap", p (lazyTrip :: T IntSet.IntSet ))
,(
"IntSet"
,
p
(
test
::
T
IntSet
.
IntSet
))
,(
"IntMap ByteString"
,
p
(
test
::
T
(
IntMap
.
IntMap
B
.
ByteString
)
))
...
...
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