From 734e2b73cf981837a746c8f0ce20582e62368b39 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 27 Oct 2017 11:49:24 +0200 Subject: [PATCH] :hammer: cleanup --- test/src/unit-regression.cpp | 50 ++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/test/src/unit-regression.cpp b/test/src/unit-regression.cpp index ed046ea17..1e1588e60 100644 --- a/test/src/unit-regression.cpp +++ b/test/src/unit-regression.cpp @@ -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( - is.exceptions() - | std::ios_base::failbit - | std::ios_base::badbit - ); // handle different exceptions as 'file not found', 'permission denied' + { + 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/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; + 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)); - } - } -*/ + */ }