forked from bblanchon/ArduinoJson
Added a test that appends a string longer that the capacity of the builder
This commit is contained in:
@ -42,6 +42,12 @@ namespace JsonGeneratorTests
|
||||
assertResultIs("ABCDEFGH");
|
||||
}
|
||||
|
||||
TEST_METHOD(AppendOverCapacity)
|
||||
{
|
||||
append("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
||||
assertResultIs("ABCDEFGHIJKLMNO");
|
||||
}
|
||||
|
||||
TEST_METHOD(AppendSpecialChars)
|
||||
{
|
||||
append("\\\"\/\b\f\n\r");
|
||||
|
Reference in New Issue
Block a user