mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
Correct comment in tests.
This commit is contained in:
@@ -133,7 +133,7 @@ void MemoryStreamTest::testInputSeek()
|
|||||||
istr >> c; // now that makes 7
|
istr >> c; // now that makes 7
|
||||||
assert (c == '7');
|
assert (c == '7');
|
||||||
|
|
||||||
istr.seekg(-7, std::ios_base::end); // so that puts us at 2
|
istr.seekg(-7, std::ios_base::end); // so that puts us at 9-7=2
|
||||||
istr >> c; // now 3
|
istr >> c; // now 3
|
||||||
assert (c == '3');
|
assert (c == '3');
|
||||||
|
|
||||||
@@ -266,8 +266,8 @@ void MemoryStreamTest::testOutputSeek()
|
|||||||
ostr << 'b'; // and this makes 8 (zero index 7)
|
ostr << 'b'; // and this makes 8 (zero index 7)
|
||||||
assert (buffer[7] == 'b');
|
assert (buffer[7] == 'b');
|
||||||
|
|
||||||
ostr.seekp(-3, std::ios_base::end); // 10-7 from the beginning
|
ostr.seekp(-3, std::ios_base::end); // 9-3=6 from the beginning
|
||||||
ostr << 'c'; // and this makes 4 (zero index 3)
|
ostr << 'c'; // and this makes 7 (zero index 6)
|
||||||
assert (buffer[6] == 'c');
|
assert (buffer[6] == 'c');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user