mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Added a tests of a string with a double quote in it
This commit is contained in:
@@ -30,6 +30,13 @@ namespace JsonGeneratorTests
|
||||
AssertJsonIs("[\"hello\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneStringContainingDoubleQuote)
|
||||
{
|
||||
arr.add("\"");
|
||||
|
||||
AssertJsonIs("[\"\\\"\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddTwoStrings)
|
||||
{
|
||||
arr.add("hello");
|
||||
|
||||
Reference in New Issue
Block a user