🔨 another try to fix #714

adding std::ios_base::binary when opening all_unicode.json.cbor
This commit is contained in:
Niels Lohmann 2017-10-31 15:04:14 +01:00
parent c4d6626745
commit 5696660eba
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 34 additions and 35 deletions

View file

@ -1270,7 +1270,6 @@ 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")
{ {
{ {
@ -1293,11 +1292,11 @@ TEST_CASE("regression tests")
| 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",
std::ios_base::in | std::ios_base::binary);
CHECK_NOTHROW(nlohmann::json::from_cbor(is)); CHECK_NOTHROW(nlohmann::json::from_cbor(is));
} }
} }
*/
SECTION("issue #805 - copy constructor is used with std::initializer_list constructor.") SECTION("issue #805 - copy constructor is used with std::initializer_list constructor.")
{ {