forked from bblanchon/ArduinoJson
Added a test that adds a string with a backslash in it
This commit is contained in:
1 parent
45dfdbd5e4
commit
6b61617133
2 files changed
+31
-6
No files matched your search
@@ -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