mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
Added a test of a nested hash table in an array
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include "CppUnitTest.h"
|
||||
#include "JsonArray.h"
|
||||
#include "JsonHashTable.h"
|
||||
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
@ -109,6 +110,15 @@ namespace JsonGeneratorTests
|
||||
jsonIs("[[]]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneEmptyNestedHash)
|
||||
{
|
||||
JsonHashTable<1> nestedHash;
|
||||
|
||||
addNested(nestedHash);
|
||||
|
||||
jsonIs("[{}]");
|
||||
}
|
||||
|
||||
TEST_METHOD(AddOneNestedArrayWithOneItem)
|
||||
{
|
||||
JsonArray<1> nestedArray;
|
||||
|
Reference in New Issue
Block a user