From 7c48f80fd8d81ec7c0b9e504174b05892248380a Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 24 Nov 2018 01:02:53 +0100 Subject: Add last streamblock flag accessor --- tests/tstreamblock.nim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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": rawStream.setPosition(0) let rawBitReader = rawStream.bitReader() let streamBlock = readRaw(rawBitReader, uncompressed) + check streamBlock.isLast() let outputStream = newStringStream() defer: outputStream.close() @@ -58,6 +59,7 @@ suite "streamblock": let outputStream = newStringStream() defer: outputStream.close() let outputBitWriter = outputStream.bitWriter() + check streamBlock.isLast() streamBlock.writeRawTo(outputBitWriter) outputBitWriter.flush() -- cgit v1.2.3