forked from fmtlib/fmt
Simplify test
This commit is contained in:
@ -2555,14 +2555,11 @@ TEST(incomplete_type_test, format) {
|
|||||||
EXPECT_EQ(fmt::format("{}", external_instance), "42");
|
EXPECT_EQ(fmt::format("{}", external_instance), "42");
|
||||||
}
|
}
|
||||||
|
|
||||||
struct incomplete_type {
|
struct incomplete_type {};
|
||||||
int i;
|
const incomplete_type& external_instance = {};
|
||||||
};
|
|
||||||
|
|
||||||
const incomplete_type& external_instance = {42};
|
auto fmt::formatter<incomplete_type>::format(const incomplete_type&,
|
||||||
|
|
||||||
auto fmt::formatter<incomplete_type>::format(const incomplete_type& x,
|
|
||||||
fmt::context& ctx) const
|
fmt::context& ctx) const
|
||||||
-> fmt::appender {
|
-> fmt::appender {
|
||||||
return formatter<int>::format(x.i, ctx);
|
return formatter<int>::format(42, ctx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user