Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
734e2b73
Unverified
Commit
734e2b73
authored
Oct 27, 2017
by
Niels Lohmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🔨
cleanup
parent
7820b5ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
unit-regression.cpp
test/src/unit-regression.cpp
+25
-25
No files found.
test/src/unit-regression.cpp
View file @
734e2b73
...
@@ -1254,32 +1254,32 @@ TEST_CASE("regression tests")
...
@@ -1254,32 +1254,32 @@ TEST_CASE("regression tests")
}
}
}
}
/*
/*
SECTION("issue #714 - throw std::ios_base::failure exception when failbit set to true")
SECTION("issue #714 - throw std::ios_base::failure exception when failbit set to true")
{
{
{
std::ifstream is;
{
is.exceptions(
std::ifstream is;
is.exceptions()
is.exceptions(
| std::ios_base::failbit
is.exceptions()
| std::ios_base::badbit
| std::ios_base::failbit
); // handle different exceptions as 'file not found', 'permission denied'
| std::ios_base::badbit
); // handle different exceptions as 'file not found', 'permission denied'
is.open("test/data/regression/working_file.json");
CHECK_NOTHROW(nlohmann::json::parse(is));
is.open("test/data/regression/working_file.json");
}
CHECK_NOTHROW(nlohmann::json::parse(is));
}
{
{
std::ifstream is;
std::ifstream is;
is.exceptions(
is.exceptions(
is.exceptions()
is.exceptions()
| std::ios_base::failbit
| std::ios_base::failbit
| std::ios_base::badbit
| std::ios_base::badbit
); // handle different exceptions as 'file not found', 'permission denied'
); // handle different exceptions as 'file not found', 'permission denied'
is.open("test/data/json_nlohmann_tests/all_unicode.json.cbor");
is.open("test/data/json_nlohmann_tests/all_unicode.json.cbor");
CHECK_NOTHROW(nlohmann::json::from_cbor(is));
CHECK_NOTHROW(nlohmann::json::from_cbor(is));
}
}
}
}
*/
*/
}
}
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