Skip to content
Snippets Groups Projects
Commit c61c26d1 authored by Don Stewart's avatar Don Stewart
Browse files

commet out lazy* tests

parent 8cc7c159
No related branches found
No related tags found
No related merge requests found
......@@ -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) ))
......
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