Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/test_std_formatting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void test_by_char(const std::locale& l, const std::locale& lreal)
const bool bad_parsing = [&]() {
ss_ref_type ss_ref;
ss_ref.imbue(lreal);
ss_ref << std::showbase << std::put_money(104334, false);
ss_ref << std::showbase << std::put_money(104334.L, false);
std::ios_base::iostate err = std::ios_base::iostate();
typename std::money_get<RefCharType>::iter_type end;
long double tmp;
Expand Down Expand Up @@ -95,7 +95,7 @@ void test_by_char(const std::locale& l, const std::locale& lreal)
TEST_EQ(v1, 1043.34);
}

empty_stream(ss_ref) << std::put_money(104334, false);
empty_stream(ss_ref) << std::put_money(104334.L, false);
TEST_EQ(to_utf8(ss.str()), to_utf8(ss_ref.str()));
}
{
Expand All @@ -111,7 +111,7 @@ void test_by_char(const std::locale& l, const std::locale& lreal)
TEST_EQ(v1, 1043.34);
}

empty_stream(ss_ref) << std::put_money(104334, true);
empty_stream(ss_ref) << std::put_money(104334.L, true);
TEST_EQ(to_utf8(ss.str()), to_utf8(ss_ref.str()));
}
}
Expand Down
Loading