Skip to content

Commit 4988b3a

Browse files
committed
Making test narrower
1 parent 8b0d857 commit 4988b3a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/format-test.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,8 +2580,9 @@ struct fixed_string {
25802580

25812581
}
25822582

2583-
TEST(format_test, fixed_string_constant) {
2584-
static constexpr auto f = fixed_string<5>("x={}");
2585-
EXPECT_EQ(fmt::format(f.data, 42), "x=42");
2583+
TEST(base_test, from_constexpr_fixed_string) {
2584+
static constexpr auto fs = fixed_string<5>("x={}");
2585+
static constexpr auto fmt = fmt::string_view(fs.data);
2586+
EXPECT_EQ(fmt, "x={}");
25862587
}
25872588
#endif

0 commit comments

Comments
 (0)