Added JsonError

This commit is contained in:
Benoit Blanchon committed 2018-03-09 16:58:01 +01:00
1 parent 83d73c93f7
commit b2a8085651
24 files changed
+641 -515

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@
TEST_CASE("Gbathree") {
DynamicJsonObject _object;
bool success = deserializeJson(
JsonError error = deserializeJson(
_object,
"{\"protocol_name\":\"fluorescence\",\"repeats\":1,\"wait\":0,"
"\"averages\":1,\"measurements\":3,\"meas2_light\":15,\"meas1_"
@@ -22,7 +22,7 @@ TEST_CASE("Gbathree") {
"[15,15,15,15]],\"altc\":[2,2,2,2],\"altd\":[2,2,2,2]}");
SECTION("Success") {
REQUIRE(success == true);
REQUIRE(error == JsonError::Ok);
}
SECTION("ProtocolName") {