mirror of
https://github.com/nlohmann/json.git
synced 2024-12-04 22:49:02 +08:00
Merge branch 'develop' of https://github.com/nlohmann/json into develop
This commit is contained in:
commit
b59a58406e
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user