Skip to content

Commit 4e97df1

Browse files
committed
Skip remaining parser test if stdlib can't do it
1 parent 1906bc1 commit 4e97df1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/test_std_formatting.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ void test_by_char(const std::locale& l, const std::locale& lreal)
102102

103103
ss << as::currency << as::currency_iso;
104104
TEST(ss << 1043.34);
105-
double v1;
106-
if TEST(ss >> v1)
107-
TEST_EQ(v1, 1043.34);
105+
if(!bad_parsing) {
106+
double v1;
107+
if TEST(ss >> v1)
108+
TEST_EQ(v1, 1043.34);
109+
}
108110

109111
ss_ref_type ss_ref;
110112
ss_ref.imbue(lreal);

0 commit comments

Comments
 (0)