Implement printing of values that are convertible to int such as enums

This commit is contained in:
Victor Zverovich
2015-03-10 07:53:46 -07:00
parent 08d759c425
commit 5821aec7b9
3 changed files with 43 additions and 2 deletions
+6
View File
@@ -430,6 +430,12 @@ TEST(PrintfTest, Location) {
// TODO: test %n
}
enum E { A = 42 };
TEST(PrintfTest, Enum) {
EXPECT_PRINTF("42", "%d", A);
}
#if FMT_USE_FILE_DESCRIPTORS
TEST(PrintfTest, Examples) {
const char *weekday = "Thursday";