Added a test that appends a string longer that the capacity of the builder

This commit is contained in:
Benoît Blanchon
2014-06-26 13:00:14 +02:00
parent ca99749f28
commit 7ab728e996
3 changed files with 15 additions and 6 deletions

View File

@ -42,6 +42,12 @@ namespace JsonGeneratorTests
assertResultIs("ABCDEFGH");
}
TEST_METHOD(AppendOverCapacity)
{
append("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
assertResultIs("ABCDEFGHIJKLMNO");
}
TEST_METHOD(AppendSpecialChars)
{
append("\\\"\/\b\f\n\r");