mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-02 23:21:45 +01:00
Make ostream formatter work with compile-time format strings (#1692)
This commit is contained in:
@@ -302,3 +302,7 @@ std::ostream& operator<<(std::ostream& os, copyfmt_test) {
|
||||
TEST(OStreamTest, CopyFmt) {
|
||||
EXPECT_EQ("foo", fmt::format("{}", copyfmt_test()));
|
||||
}
|
||||
|
||||
TEST(OStreamTest, CompileTimeString) {
|
||||
EXPECT_EQ("42", fmt::format(FMT_STRING("{}"), 42));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user