Commit c3f5dce8 authored by Victor Zverovich's avatar Victor Zverovich
parent ea5dce39
......@@ -1022,6 +1022,10 @@ void CheckUnknownTypes(
}
}
TEST(FormatterTest, FormatBool) {
EXPECT_EQ(L"1", str(Format(L"{}") << true));
}
TEST(FormatterTest, FormatShort) {
short s = 42;
EXPECT_EQ("42", str(Format("{0:d}") << s));
......
......@@ -760,7 +760,7 @@ class BasicWriter {
return *this;
}
void Write(const std::basic_string<char> &s, const FormatSpec &spec) {
void Write(const std::basic_string<Char> &s, const FormatSpec &spec) {
FormatString(s.data(), s.size(), spec);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment