mirror of
https://github.com/fmtlib/fmt.git
synced 2025-09-08 03:51:58 -04:00
Simplify test
This commit is contained in:
parent
c7925241c7
commit
c81cbed2b7
@ -2555,14 +2555,11 @@ TEST(incomplete_type_test, format) {
|
||||
EXPECT_EQ(fmt::format("{}", external_instance), "42");
|
||||
}
|
||||
|
||||
struct incomplete_type {
|
||||
int i;
|
||||
};
|
||||
struct incomplete_type {};
|
||||
const incomplete_type& external_instance = {};
|
||||
|
||||
const incomplete_type& external_instance = {42};
|
||||
|
||||
auto fmt::formatter<incomplete_type>::format(const incomplete_type& x,
|
||||
auto fmt::formatter<incomplete_type>::format(const incomplete_type&,
|
||||
fmt::context& ctx) const
|
||||
-> fmt::appender {
|
||||
return formatter<int>::format(x.i, ctx);
|
||||
return formatter<int>::format(42, ctx);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user