clear() and prevention of resizing for same size

This commit is contained in:
Aleksandar Fabijanic
2009-03-16 19:14:51 +00:00
parent c2d5c64159
commit 5e72766ea6
2 changed files with 33 additions and 7 deletions

View File

@@ -216,6 +216,11 @@ void CoreTest::testBuffer()
for (int j = 0; i < s; ++i, ++j)
assert (b1[i] == j);
b1.clear();
pi = b1.begin();
for (; pi != b1.end(); ++pi)
assert (*pi == 0);
b1.resize(0);
assert (b1.isEmpty());