Unverified Commit b59a5840 by Niels Lohmann

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

parents 4e54c9a1 95432c34
...@@ -1346,13 +1346,11 @@ TEST_CASE("Big List of Naughty Strings") ...@@ -1346,13 +1346,11 @@ TEST_CASE("Big List of Naughty Strings")
SECTION("roundtripping") SECTION("roundtripping")
{ {
std::ifstream f("test/data/big-list-of-naughty-strings/blns.json"); 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 // trim whitespace
line = trim(line); line = trim(line);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment