mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
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