Use textual representation for bool by default (#170)

This commit is contained in:
vitaut
2015-06-11 09:00:06 -07:00
parent fd5c2e909b
commit 9d09214e7a
5 changed files with 32 additions and 9 deletions
+6 -2
View File
@@ -1147,8 +1147,12 @@ void check_unknown_types(
}
}
TEST(FormatterTest, FormatBool) {
EXPECT_EQ(L"1", format(L"{}", true));
TEST(BoolTest, FormatBool) {
EXPECT_EQ("true", format("{}", true));
EXPECT_EQ("false", format("{}", false));
EXPECT_EQ("1", format("{:d}", true));
EXPECT_EQ("true ", format("{:5}", true));
EXPECT_EQ(L"true", format(L"{}", true));
}
TEST(FormatterTest, FormatShort) {