mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Test an object with comma, quote and column in the value
This commit is contained in:
@@ -56,6 +56,15 @@ namespace JsonGeneratorTests
|
||||
"}");
|
||||
}
|
||||
|
||||
TEST_METHOD(ObjectTrickyCharacters)
|
||||
{
|
||||
whenInputIs("{\"key\":\":\\\"',\"}");
|
||||
outputMustBe(
|
||||
"{\n"
|
||||
" \"key\":\":\\\"',\"\n"
|
||||
"}");
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void whenInputIs(const char input[])
|
||||
|
||||
Reference in New Issue
Block a user