diff --git a/test/test_formatting.cpp b/test/test_formatting.cpp index b847a50..c4b64b2 100644 --- a/test/test_formatting.cpp +++ b/test/test_formatting.cpp @@ -907,8 +907,8 @@ void test_uint64_format() TEST_NE(ss.str(), posix_value); uint64_t parsed_value{}; - TEST(ss >> parsed_value); - TEST_EQ(parsed_value, value); + if TEST(ss >> parsed_value) + TEST_EQ(parsed_value, value); } #endif } diff --git a/test/test_posix_formatting.cpp b/test/test_posix_formatting.cpp index cc50e23..840eac8 100644 --- a/test/test_posix_formatting.cpp +++ b/test/test_posix_formatting.cpp @@ -61,8 +61,8 @@ void test_by_char(const std::locale& l, locale_t lreal) TEST(ss << 1045.45); double n; - TEST(ss >> n); - TEST_EQ(n, 1045.45); + if TEST(ss >> n) + TEST_EQ(n, 1045.45); TEST_EQ(ss.str(), ascii_to("1045.45")); } @@ -74,8 +74,8 @@ void test_by_char(const std::locale& l, locale_t lreal) ss << as::number; TEST(ss << 1045.45); double n; - TEST(ss >> n); - TEST_EQ(n, 1045.45); + if TEST(ss >> n) + TEST_EQ(n, 1045.45); if(std::use_facet(l).country() == "US") TEST_EQ(ss.str(), from_narrow("1,045.45", lreal)); diff --git a/test/test_std_formatting.cpp b/test/test_std_formatting.cpp index 13ddd30..e764f74 100644 --- a/test/test_std_formatting.cpp +++ b/test/test_std_formatting.cpp @@ -31,8 +31,8 @@ void test_by_char(const std::locale& l, const std::locale& lreal) TEST(ss << 1045.45); double n; - TEST(ss >> n); - TEST_EQ(n, 1045.45); + if TEST(ss >> n) + TEST_EQ(n, 1045.45); TEST_EQ(ss.str(), ascii_to("1045.45")); ss_ref_type ss_ref; ss_ref.imbue(std::locale::classic()); @@ -51,8 +51,8 @@ void test_by_char(const std::locale& l, const std::locale& lreal) TEST(ss << as::number); TEST(ss << 1045.45); double n; - TEST(ss >> n); - TEST_EQ(n, 1045.45); + if TEST(ss >> n) + TEST_EQ(n, 1045.45); ss_ref_type ss_ref; ss_ref.imbue(lreal); @@ -88,8 +88,8 @@ void test_by_char(const std::locale& l, const std::locale& lreal) TEST(ss << 1043.34); if(!bad_parsing) { double v1; - TEST(ss >> v1); - TEST_EQ(v1, 1043.34); + if TEST(ss >> v1) + TEST_EQ(v1, 1043.34); } TEST_EQ(to_utf8(ss.str()), to_utf8(ss_ref.str())); @@ -103,8 +103,8 @@ void test_by_char(const std::locale& l, const std::locale& lreal) ss << as::currency << as::currency_iso; TEST(ss << 1043.34); double v1; - TEST(ss >> v1); - TEST_EQ(v1, 1043.34); + if TEST(ss >> v1) + TEST_EQ(v1, 1043.34); ss_ref_type ss_ref; ss_ref.imbue(lreal); diff --git a/test/test_winapi_formatting.cpp b/test/test_winapi_formatting.cpp index 67d145f..9504492 100644 --- a/test/test_winapi_formatting.cpp +++ b/test/test_winapi_formatting.cpp @@ -39,8 +39,8 @@ void test_by_char(const std::locale& l, std::string name, int lcid) TEST(ss << 1045.45); double n; - TEST(ss >> n); - TEST_EQ(n, 1045.45); + if TEST(ss >> n) + TEST_EQ(n, 1045.45); TEST_EQ(to_utf8(ss.str()), "1045.45"); } @@ -52,8 +52,8 @@ void test_by_char(const std::locale& l, std::string name, int lcid) ss << as::number; TEST(ss << 1045.45); double n; - TEST(ss >> n); - TEST_EQ(n, 1045.45); + if TEST(ss >> n) + TEST_EQ(n, 1045.45); if(name == "ru_RU.UTF-8") { BOOST_LOCALE_START_CONST_CONDITION