File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,6 @@ TEST(xchar_test, compile_time_string) {
93
93
EXPECT_EQ (fmt::format (fmt::wformat_string<int >(L" {}" ), 42 ), L" 42" );
94
94
#if defined(FMT_USE_STRING_VIEW) && FMT_CPLUSPLUS >= 201703L
95
95
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);
99
96
#endif
100
97
}
101
98
@@ -198,6 +195,12 @@ TEST(xchar_test, format_to) {
198
195
EXPECT_STREQ (buf.data (), L" 42" );
199
196
}
200
197
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
+
201
204
TEST (xchar_test, vformat_to) {
202
205
int n = 42 ;
203
206
auto args = fmt::make_wformat_args (n);
You can’t perform that action at this time.
0 commit comments