mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
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:
|
||||
|
||||
void whenInputIs(const char input[])
|
||||
|
||||
Reference in New Issue
Block a user