add ToString test into OStreamTest
to check fmt::to_string() with class that has output stream operator
This commit is contained in:
parent
9d5ad7e0cd
commit
3acbd494b1
@ -319,3 +319,7 @@ TEST(OStreamTest, CopyFmt) {
|
||||
TEST(OStreamTest, CompileTimeString) {
|
||||
EXPECT_EQ("42", fmt::format(FMT_STRING("{}"), 42));
|
||||
}
|
||||
|
||||
TEST(OStreamTest, ToString) {
|
||||
EXPECT_EQ("ABC", fmt::to_string(fmt_test::ABC()));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user