added Buffer append()

This commit is contained in:
Marian Krivos
2012-05-13 17:23:57 +00:00
parent c41196bd5b
commit 11539da851
2 changed files with 24 additions and 0 deletions

View File

@@ -251,6 +251,14 @@ void CoreTest::testBuffer()
Buffer<int> f = e;
assert (f == e);
buffer<char> g;
g.append("hello", 5);
assert (g.size() == 5);
g.append(g);
assert (g.size() == 10);
assert ( !memcmp(g.begin(), "hellohello", 10) );
}