forked from bblanchon/ArduinoJson
Tests empty nested objects in objects
This commit is contained in:
@ -65,6 +65,17 @@ namespace JsonGeneratorTests
|
|||||||
"}");
|
"}");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST_METHOD(ObjectWithEmptyNestedObjects)
|
||||||
|
{
|
||||||
|
whenInputIs("{\"key1\":{},\"key2\":{}}");
|
||||||
|
outputMustBe(
|
||||||
|
"{\n"
|
||||||
|
" \"key1\": {},\n"
|
||||||
|
" \"key2\": {}\n"
|
||||||
|
"}");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void whenInputIs(const char input[])
|
void whenInputIs(const char input[])
|
||||||
|
Reference in New Issue
Block a user