Fix handling of set_debug_format
This commit is contained in:
1 parent
56d7a8c157
commit
3eb3aef575
2 files changed
+15
-5
No files matched your search
@@ -528,3 +528,16 @@ TEST(ranges_test, container_adaptor) {
|
||||
EXPECT_EQ(fmt::format("{}", m), "[1, 2]");
|
||||
}
|
||||
}
|
||||
|
||||
struct tieable {
|
||||
int a = 3;
|
||||
double b = 0.42;
|
||||
};
|
||||
|
||||
auto format_as(const tieable& t) -> std::tuple<int, double> {
|
||||
return std::tie(t.a, t.b);
|
||||
}
|
||||
|
||||
TEST(ranges_test, format_as_tie) {
|
||||
EXPECT_EQ(fmt::format("{}", tieable()), "(3, 0.42)");
|
||||
}
|
||||
Reference in new issue
Block a user