Skip to content

Commit c81cbed

Browse files
committed
Simplify test
1 parent c792524 commit c81cbed

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

test/format-test.cc

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,14 +2555,11 @@ TEST(incomplete_type_test, format) {
25552555
EXPECT_EQ(fmt::format("{}", external_instance), "42");
25562556
}
25572557

2558-
struct incomplete_type {
2559-
int i;
2560-
};
2561-
2562-
const incomplete_type& external_instance = {42};
2558+
struct incomplete_type {};
2559+
const incomplete_type& external_instance = {};
25632560

2564-
auto fmt::formatter<incomplete_type>::format(const incomplete_type& x,
2561+
auto fmt::formatter<incomplete_type>::format(const incomplete_type&,
25652562
fmt::context& ctx) const
25662563
-> fmt::appender {
2567-
return formatter<int>::format(x.i, ctx);
2564+
return formatter<int>::format(42, ctx);
25682565
}

0 commit comments

Comments
 (0)