mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
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