Refactor assertion and adjust expected error message
This commit is contained in:
parent
6481d2e7c4
commit
44deb1c508
@ -793,9 +793,8 @@ TEST_CASE("regression tests 1")
|
|||||||
CHECK_NOTHROW(ss >> j);
|
CHECK_NOTHROW(ss >> j);
|
||||||
CHECK(j == 222);
|
CHECK(j == 222);
|
||||||
|
|
||||||
CHECK_THROWS_AS(ss >> j, json::parse_error&);
|
CHECK_THROWS_WITH_AS(ss >> j,
|
||||||
CHECK_THROWS_WITH(ss >> j,
|
"[json.exception.parse_error.101] parse error at line 2, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal", json::parse_error&);
|
||||||
"[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");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("whitespace + one value")
|
SECTION("whitespace + one value")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user