forked from bblanchon/ArduinoJson
deserializeMsgPack() inserts null instead of returning NotSupported
This commit is contained in:
1 parent
cc7ebfd11e
commit
71f44aaee1
5 files changed
+114
-94
No files matched your search
@@ -20,7 +20,8 @@ static void check(const char* input, U expected) {
|
||||
static void checkNotSupported(const char* input) {
|
||||
DynamicJsonDocument doc(4096);
|
||||
DeserializationError error = deserializeMsgPack(doc, input);
|
||||
REQUIRE(error == DeserializationError::NotSupported);
|
||||
REQUIRE(error == DeserializationError::Ok);
|
||||
REQUIRE(doc.isNull());
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user