Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/nlohmann/json into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Sep 29, 2018
2 parents 4e54c9a + 95432c3 commit b59a584
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/src/unit-testsuites.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b59a584

Please sign in to comment.