aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorpacien2018-11-24 01:02:53 +0100
committerpacien2018-11-24 01:02:53 +0100
commit7c48f80fd8d81ec7c0b9e504174b05892248380a (patch)
tree95fcddbd33febfb516514570c03232ce13a48ecc /tests
parent55c305c13850190776d84b593e305bf070a7db0e (diff)
downloadgziplike-7c48f80fd8d81ec7c0b9e504174b05892248380a.tar.gz
Add last streamblock flag accessor
Diffstat (limited to 'tests')
-rw-r--r--tests/tstreamblock.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/tstreamblock.nim b/tests/tstreamblock.nim
index f1be559..89f69e0 100644
--- a/tests/tstreamblock.nim
+++ b/tests/tstreamblock.nim
@@ -25,6 +25,7 @@ suite "streamblock":
25 rawStream.setPosition(0) 25 rawStream.setPosition(0)
26 let rawBitReader = rawStream.bitReader() 26 let rawBitReader = rawStream.bitReader()
27 let streamBlock = readRaw(rawBitReader, uncompressed) 27 let streamBlock = readRaw(rawBitReader, uncompressed)
28 check streamBlock.isLast()
28 29
29 let outputStream = newStringStream() 30 let outputStream = newStringStream()
30 defer: outputStream.close() 31 defer: outputStream.close()
@@ -58,6 +59,7 @@ suite "streamblock":
58 let outputStream = newStringStream() 59 let outputStream = newStringStream()
59 defer: outputStream.close() 60 defer: outputStream.close()
60 let outputBitWriter = outputStream.bitWriter() 61 let outputBitWriter = outputStream.bitWriter()
62 check streamBlock.isLast()
61 streamBlock.writeRawTo(outputBitWriter) 63 streamBlock.writeRawTo(outputBitWriter)
62 outputBitWriter.flush() 64 outputBitWriter.flush()
63 65