Skip to content

Commit 5fe9d59

Browse files
author
Hans-Martin B. Jensen
committed
Move to new test
1 parent 356db4a commit 5fe9d59

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: test/xchar-test.cc

+6-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,6 @@ TEST(xchar_test, compile_time_string) {
9393
EXPECT_EQ(fmt::format(fmt::wformat_string<int>(L"{}"), 42), L"42");
9494
#if defined(FMT_USE_STRING_VIEW) && FMT_CPLUSPLUS >= 201703L
9595
EXPECT_EQ(fmt::format(FMT_STRING(std::wstring_view(L"{}")), 42), L"42");
96-
std::wstring ws;
97-
fmt::format_to(std::back_inserter(ws), FMT_STRING(L"{}"), 42);
98-
EXPECT_EQ(L"42", ws);
9996
#endif
10097
}
10198

@@ -198,6 +195,12 @@ TEST(xchar_test, format_to) {
198195
EXPECT_STREQ(buf.data(), L"42");
199196
}
200197

198+
TEST(xchar_test, compile_time_string_format_to) {
199+
std::wstring ws;
200+
fmt::format_to(std::back_inserter(ws), FMT_STRING(L"{}"), 42);
201+
EXPECT_EQ(L"42", ws);
202+
}
203+
201204
TEST(xchar_test, vformat_to) {
202205
int n = 42;
203206
auto args = fmt::make_wformat_args(n);

0 commit comments

Comments
 (0)