forked from bblanchon/ArduinoJson
Made nestingLimit a member of the document
This commit is contained in:
@ -7,9 +7,10 @@
|
||||
|
||||
static void check(const char* input, MsgPackError expected,
|
||||
uint8_t nestingLimit = 10) {
|
||||
DynamicJsonDocument variant;
|
||||
DynamicJsonDocument doc;
|
||||
doc.nestingLimit = nestingLimit;
|
||||
|
||||
MsgPackError error = deserializeMsgPack(variant, input, nestingLimit);
|
||||
MsgPackError error = deserializeMsgPack(doc, input);
|
||||
|
||||
REQUIRE(error == expected);
|
||||
}
|
||||
|
Reference in New Issue
Block a user