deserializeMsgPack() inserts null instead of returning NotSupported

This commit is contained in:
Benoit Blanchon
2021-02-18 19:26:11 +01:00
parent cc7ebfd11e
commit 71f44aaee1
5 changed files with 114 additions and 94 deletions

View File

@ -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