Merged MsgPackError and JsonError into DeserializationError.

Return NotSupported if the JSON input contains "\u".
This commit is contained in:
Benoit Blanchon
2018-05-15 18:23:09 +02:00
parent ccb54136a2
commit 4592f23260
38 changed files with 574 additions and 636 deletions

View File

@ -8,7 +8,7 @@
TEST_CASE("Gbathree") {
DynamicJsonDocument doc;
JsonError error = deserializeJson(
DeserializationError error = deserializeJson(
doc,
"{\"protocol_name\":\"fluorescence\",\"repeats\":1,\"wait\":0,"
"\"averages\":1,\"measurements\":3,\"meas2_light\":15,\"meas1_"
@ -23,7 +23,7 @@ TEST_CASE("Gbathree") {
JsonObject& root = doc.as<JsonObject>();
SECTION("Success") {
REQUIRE(error == JsonError::Ok);
REQUIRE(error == DeserializationError::Ok);
}
SECTION("ProtocolName") {