Skip to content

Commit

Permalink
fix: adapt 'encodeChunked' test to change in API
Browse files Browse the repository at this point in the history
  • Loading branch information
meiersi committed Jan 15, 2012
1 parent d07e79b commit 66c796e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/builder/Data/ByteString/Lazy/Builder/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -413,14 +413,14 @@ testBuilder f recipe =
encodeBase128LE :: Builder -> Builder
encodeBase128LE =
(`mappend` BE.encodeWithF BE.word8 0)
. (encodeChunked 5 word64Base128LEPadded BE.emptyB)
. (encodeChunked word64Base128LEPadded BE.emptyB)

-- | Chunked encoding using 0-padded, space-terminated hexadecimal numbers
-- for encoding the chunk-size.
encodeHex :: Builder -> Builder
encodeHex =
(`mappend` BE.encodeWithF (hexLen 0) 0)
. (encodeChunked 7 hexLen BE.emptyB)
. (encodeChunked hexLen BE.emptyB)

hexLen :: PaddedSizeEncoding
hexLen bound =
Expand Down

0 comments on commit 66c796e

Please sign in to comment.