Skip to content

Commit e9b5948

Browse files
committed
Cleanup test
1 parent f20b166 commit e9b5948

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/format-test.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,9 +2036,6 @@ TEST(format_test, unpacked_args) {
20362036
6, 7, 8, 9, 'a', 'b', 'c', 'd', 'e', 'f', 'g'));
20372037
}
20382038

2039-
constexpr char with_null[3] = {'{', '}', '\0'};
2040-
static constexpr char static_with_null[3] = {'{', '}', '\0'};
2041-
20422039
TEST(format_test, compile_time_string) {
20432040
EXPECT_EQ(fmt::format(FMT_STRING("foo")), "foo");
20442041
EXPECT_EQ(fmt::format(FMT_STRING("{}"), 42), "42");
@@ -2053,11 +2050,13 @@ TEST(format_test, compile_time_string) {
20532050
EXPECT_EQ(fmt::format(FMT_STRING("{} {two}"), 1, "two"_a = 2), "1 2");
20542051
#endif
20552052

2053+
static constexpr char static_with_null[3] = {'{', '}', '\0'};
20562054
(void)static_with_null;
20572055
#ifndef _MSC_VER
20582056
EXPECT_EQ(fmt::format(FMT_STRING(static_with_null), 42), "42");
20592057
#endif
20602058

2059+
constexpr char with_null[3] = {'{', '}', '\0'};
20612060
(void)with_null;
20622061
#if FMT_CPLUSPLUS >= 201703L
20632062
EXPECT_EQ(fmt::format(FMT_STRING(with_null), 42), "42");

0 commit comments

Comments
 (0)