Add support for StringRef in BasicFormatter.
This commit is contained in:
1 parent
00c9fcf1fe
commit
d3ec9a1316
2 files changed
+9
No files matched your search
@@ -1091,6 +1091,10 @@ TEST(FormatterTest, FormatString) {
|
||||
EXPECT_EQ("test", str(Format("{0}") << std::string("test")));
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatStringRef) {
|
||||
EXPECT_EQ("test", str(Format("{0}") << StringRef("test")));
|
||||
}
|
||||
|
||||
TEST(FormatterTest, FormatUsingIOStreams) {
|
||||
EXPECT_EQ("a string", str(Format("{0}") << TestString("a string")));
|
||||
std::string s = str(fmt::Format("The date is {0}") << Date(2012, 12, 9));
|
||||
|
||||
Reference in new issue
Block a user