TESTS: Add failing test for repeated seeks in BufferedSeekableReadStream

This commit is contained in:
Willem Jan Palenstijn 2013-01-26 19:25:09 +01:00
parent 980dc4a456
commit da8eeb9dbe

View File

@ -72,6 +72,13 @@ class BufferedSeekableReadStreamTestSuite : public CxxTest::TestSuite {
b = ssrs.readByte();
TS_ASSERT_EQUALS(b, 2);
ssrs.seek(5, SEEK_CUR);
TS_ASSERT_EQUALS(ssrs.pos(), 8);
ssrs.seek(-1, SEEK_CUR);
TS_ASSERT_EQUALS(ssrs.pos(), 7);
b = ssrs.readByte();
TS_ASSERT_EQUALS(b, 7);
delete &ssrs;
}
};