mirror of
https://github.com/nlohmann/json.git
synced 2026-11-18 13:10:21 +00:00
more on #290
This commit is contained in:
1 parent
eef8059003
commit
b4571360df
16 files changed
+298
-101
No files matched your search
@@ -113,6 +113,12 @@ TEST_CASE("deserialization")
|
||||
std::initializer_list<uint8_t> v = {'t', 'r', 'u', 'e', '\0'};
|
||||
CHECK(json::parse(v) == json(true));
|
||||
}
|
||||
|
||||
SECTION("empty container")
|
||||
{
|
||||
std::vector<uint8_t> v;
|
||||
CHECK_THROWS_AS(json::parse(v), std::invalid_argument);
|
||||
}
|
||||
}
|
||||
|
||||
SECTION("via iterator range")
|
||||
|
||||
Reference in new issue
Block a user