mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-24 07:47:32 +02:00
Test an object with two memebrs
This commit is contained in:
@ -46,6 +46,16 @@ namespace JsonGeneratorTests
|
||||
"}");
|
||||
}
|
||||
|
||||
TEST_METHOD(ObjectWithTwoMembers)
|
||||
{
|
||||
whenInputIs("{\"key1\":\"value1\",\"key2\":\"value2\"}");
|
||||
outputMustBe(
|
||||
"{\n"
|
||||
" \"key1\":\"value1\",\n"
|
||||
" \"key2\":\"value2\"\n"
|
||||
"}");
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
void whenInputIs(const char input[])
|
||||
|
Reference in New Issue
Block a user