🏗️ adding anonymous namespace
This commit is contained in:
parent
0da99027b7
commit
f05614b240
16 changed files with 51 additions and 8 deletions
|
|
@ -418,7 +418,6 @@ TEST_CASE("json.org examples")
|
|||
json j;
|
||||
CHECK_NOTHROW(j.parse(f.get()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
TEST_CASE("RFC 7159 examples")
|
||||
|
|
@ -1352,6 +1351,8 @@ TEST_CASE("nst's JSONTestSuite (2)")
|
|||
}
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
std::string trim(const std::string& str);
|
||||
|
||||
// from http://stackoverflow.com/a/25829178/266378
|
||||
|
|
@ -1365,6 +1366,7 @@ std::string trim(const std::string& str)
|
|||
size_t last = str.find_last_not_of(' ');
|
||||
return str.substr(first, (last - first + 1));
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("Big List of Naughty Strings")
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue