Fix handling of octal prefix.

This commit is contained in:
Victor Zverovich committed 2014-06-20 08:04:44 -07:00
1 parent 512ab9336b
commit ca31c2b322
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -229,6 +229,7 @@ TEST(PrintfTest, DynamicWidth) {
TEST(PrintfTest, Precision) {
EXPECT_PRINTF("00042", "%.5d", 42);
EXPECT_PRINTF("-00042", "%.5d", -42);
EXPECT_PRINTF("00042", "%.5x", 0x42);
EXPECT_PRINTF("0x00042", "%#.5x", 0x42);
EXPECT_PRINTF("00042", "%.5o", 042);