mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Added a test that adds a string with a backslash in it
This commit is contained in:
@@ -37,6 +37,13 @@ namespace JsonGeneratorTests
|
||||
AssertJsonIs("[\"\\\"\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneStringContainingBackslash)
|
||||
{
|
||||
arr.add("\\");
|
||||
|
||||
AssertJsonIs("[\"\\\\\"]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddTwoStrings)
|
||||
{
|
||||
arr.add("hello");
|
||||
|
||||
Reference in New Issue
Block a user