🔨 cleanup
This commit is contained in:
parent
7820b5eccb
commit
734e2b73cf
1 changed files with 25 additions and 25 deletions
|
@ -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");
|
is.open("test/data/regression/working_file.json");
|
||||||
CHECK_NOTHROW(nlohmann::json::parse(is));
|
CHECK_NOTHROW(nlohmann::json::parse(is));
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
std::ifstream is;
|
||||||
|
is.exceptions(
|
||||||
|
is.exceptions()
|
||||||
|
| std::ios_base::failbit
|
||||||
|
| std::ios_base::badbit
|
||||||
|
); // handle different exceptions as 'file not found', 'permission denied'
|
||||||
|
|
||||||
|
is.open("test/data/json_nlohmann_tests/all_unicode.json.cbor");
|
||||||
|
CHECK_NOTHROW(nlohmann::json::from_cbor(is));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
{
|
|
||||||
std::ifstream is;
|
|
||||||
is.exceptions(
|
|
||||||
is.exceptions()
|
|
||||||
| std::ios_base::failbit
|
|
||||||
| std::ios_base::badbit
|
|
||||||
); // handle different exceptions as 'file not found', 'permission denied'
|
|
||||||
|
|
||||||
is.open("test/data/json_nlohmann_tests/all_unicode.json.cbor");
|
|
||||||
CHECK_NOTHROW(nlohmann::json::from_cbor(is));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue