From 8f7d9bc896122e0373c3e11ec87bed582c0d16ef Mon Sep 17 00:00:00 2001 From: Joshua Scott Date: Sat, 20 Oct 2018 20:14:12 +0100 Subject: [PATCH] util: Fix small error in BitStream::stream_pos decrement by bits test --- test/src/unit-bitstream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/src/unit-bitstream.cpp b/test/src/unit-bitstream.cpp index f3a8ac3..507da83 100644 --- a/test/src/unit-bitstream.cpp +++ b/test/src/unit-bitstream.cpp @@ -53,8 +53,8 @@ TEST_CASE("BitStream::stream_pos Functionality", "[bit-stream]") SECTION("Decrement bits and move to previous byte") { - position -= 4; - if (position.get_byte() != 1 || position.get_bit() != 7) + position -= 5; + if (position.get_byte() != 0 || position.get_bit() != 7) FAIL(); SUCCEED(); }