add ToString test into OStreamTest

to check fmt::to_string() with class that has output stream operator
This commit is contained in:
Alexey Ochapov 2020-08-18 20:04:06 +03:00
parent 9d5ad7e0cd
commit 3acbd494b1
No known key found for this signature in database
GPG Key ID: 740E711C3D542558

View File

@ -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()));
}