This commit is contained in:
Victor Zverovich 2014-01-28 12:49:36 -08:00
parent ea5dce3957
commit c3f5dce8d5
2 changed files with 5 additions and 1 deletions

View File

@ -1022,6 +1022,10 @@ void CheckUnknownTypes(
} }
} }
TEST(FormatterTest, FormatBool) {
EXPECT_EQ(L"1", str(Format(L"{}") << true));
}
TEST(FormatterTest, FormatShort) { TEST(FormatterTest, FormatShort) {
short s = 42; short s = 42;
EXPECT_EQ("42", str(Format("{0:d}") << s)); EXPECT_EQ("42", str(Format("{0:d}") << s));

View File

@ -760,7 +760,7 @@ class BasicWriter {
return *this; 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); FormatString(s.data(), s.size(), spec);
} }