added basic tests for Latin2, Latin9, Windows-1250, Windows-1251, Windows-1252

This commit is contained in:
Marian Krivos
2012-05-14 18:54:38 +00:00
parent 11539da851
commit fa49f5b850
4 changed files with 186 additions and 10 deletions

View File

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