Some typos
This commit is contained in:
parent
6a6790ab68
commit
8d92ca865f
14 changed files with 24 additions and 24 deletions
|
|
@ -1426,7 +1426,7 @@ TEST_CASE("parser class")
|
|||
|
||||
SECTION("tests found by mutate++")
|
||||
{
|
||||
// test case to make sure no comma preceeds the first key
|
||||
// test case to make sure no comma precedes the first key
|
||||
CHECK_THROWS_AS(parser_helper("{,\"key\": false}"), json::parse_error&);
|
||||
CHECK_THROWS_WITH(parser_helper("{,\"key\": false}"),
|
||||
"[json.exception.parse_error.101] parse error at line 1, column 2: syntax error while parsing object key - unexpected ','; expected string literal");
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ using nlohmann::json;
|
|||
|
||||
TEST_CASE("compliance tests from json.org")
|
||||
{
|
||||
// test cases are from http://json.org/JSON_checker/
|
||||
// test cases are from https://json.org/JSON_checker/
|
||||
|
||||
SECTION("expected failures")
|
||||
{
|
||||
|
|
@ -349,7 +349,7 @@ TEST_CASE("test suite from json-test-suite")
|
|||
|
||||
TEST_CASE("json.org examples")
|
||||
{
|
||||
// here, we list all JSON values from http://json.org/example
|
||||
// here, we list all JSON values from https://json.org/example
|
||||
|
||||
SECTION("1.json")
|
||||
{
|
||||
|
|
@ -1361,7 +1361,7 @@ namespace
|
|||
{
|
||||
std::string trim(const std::string& str);
|
||||
|
||||
// from http://stackoverflow.com/a/25829178/266378
|
||||
// from https://stackoverflow.com/a/25829178/266378
|
||||
std::string trim(const std::string& str)
|
||||
{
|
||||
size_t first = str.find_first_not_of(' ');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue