mirror of
https://github.com/nlohmann/json.git
synced 2024-08-24 22:07:02 +02:00
improved code coverage
This commit is contained in:
parent
d869b0a387
commit
f965c4c35b
|
@ -12020,6 +12020,12 @@ TEST_CASE("Unicode", "[hide]")
|
||||||
json j;
|
json j;
|
||||||
CHECK_NOTHROW(j << f);
|
CHECK_NOTHROW(j << f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SECTION("error for incomplete/wrong BOM")
|
||||||
|
{
|
||||||
|
CHECK_THROWS_AS(json::parse("\xef\xbb"), std::invalid_argument);
|
||||||
|
CHECK_THROWS_AS(json::parse("\xef\xbb\xbb"), std::invalid_argument);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("regression tests")
|
TEST_CASE("regression tests")
|
||||||
|
|
Loading…
Reference in a new issue