Merge branch 'develop'
This commit is contained in:
commit
625370a1ad
3 changed files with 16 additions and 0 deletions
BIN
doc/images/scanner.png
Normal file
BIN
doc/images/scanner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 645 KiB |
BIN
doc/json.gif
BIN
doc/json.gif
Binary file not shown.
Before Width: | Height: | Size: 440 KiB After Width: | Height: | Size: 440 KiB |
|
@ -223,5 +223,21 @@ TEST_CASE("deserialization")
|
||||||
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), std::invalid_argument);
|
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), std::invalid_argument);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// these cases are required for 100% line coverage
|
||||||
|
SECTION("error cases")
|
||||||
|
{
|
||||||
|
SECTION("case 1")
|
||||||
|
{
|
||||||
|
uint8_t v[] = {'\"', 'a', 'a', 'a', 'a', 'a', 'a', '\\', 'u'};
|
||||||
|
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), std::invalid_argument);
|
||||||
|
}
|
||||||
|
|
||||||
|
SECTION("case 2")
|
||||||
|
{
|
||||||
|
uint8_t v[] = {'\"', 'a', 'a', 'a', 'a', 'a', 'a', '\\', 'u', '1'};
|
||||||
|
CHECK_THROWS_AS(json::parse(std::begin(v), std::end(v)), std::invalid_argument);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue