Merge branch 'develop' of https://github.com/nlohmann/json into develop

This commit is contained in:
Niels Lohmann 2018-09-29 11:48:52 +02:00
commit b59a58406e
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -1346,13 +1346,11 @@ TEST_CASE("Big List of Naughty Strings")
SECTION("roundtripping")
{
std::ifstream f("test/data/big-list-of-naughty-strings/blns.json");
std::string line;
while (not f.eof())
// read lines one by one, bail out on error or eof
while (getline(f, line))
{
// read line
std::string line;
getline(f, line);
// trim whitespace
line = trim(line);