From 87ec44b0c4893826ac9b1f53f8640b4d38c912e5 Mon Sep 17 00:00:00 2001 From: Francois Chabot Date: Fri, 25 Jan 2019 14:53:21 -0500 Subject: [PATCH] address platform inconsistency when testing zero-length arrays --- test/src/unit-class_parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/src/unit-class_parser.cpp b/test/src/unit-class_parser.cpp index 595788a4e..467fbbff2 100644 --- a/test/src/unit-class_parser.cpp +++ b/test/src/unit-class_parser.cpp @@ -1649,8 +1649,7 @@ TEST_CASE("parser class") { uint8_t v[] = {}; json j; - CHECK_THROWS_WITH(json::parser(nlohmann::detail::input_adapter(v)).parse(true, j), - "[json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal"); + CHECK_THROWS_AS(json::parser(nlohmann::detail::input_adapter(v)).parse(true, j), json::parse_error&); }