Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
95432c34
Unverified
Commit
95432c34
authored
Sep 29, 2018
by
Niels Lohmann
Committed by
GitHub
Sep 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1262 from knilch0r/patch-1
unit-testsuites.cpp: fix hangup if file not found
parents
680a4ab6
8c1387cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
test/src/unit-testsuites.cpp
test/src/unit-testsuites.cpp
+3
-5
No files found.
test/src/unit-testsuites.cpp
View file @
95432c34
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment