🏗️ adding anonymous namespace

This commit is contained in:
Niels Lohmann 2019-04-04 08:56:36 +02:00
parent 0da99027b7
commit f05614b240
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
16 changed files with 51 additions and 8 deletions

View file

@ -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")
{