Fix BitReader test

This commit is contained in:
Martchus 2016-08-30 19:59:24 +02:00
parent 12588c6928
commit a43e9b2baf
1 changed files with 6 additions and 1 deletions

View File

@ -216,7 +216,12 @@ void IoTests::testBitReader()
CPPUNIT_ASSERT(reader.readSignedExpGolombCodedBits<sbyte>() == 4);
CPPUNIT_ASSERT(reader.readBit() == 0);
CPPUNIT_ASSERT(reader.readBit() == 0);
CPPUNIT_ASSERT_THROW(reader.readBit(), std::ios_base::failure);
try {
reader.readBit();
} catch(...) {
catchIoFailure();
}
}
/*!