Implement divmod

This commit is contained in:
Victor Zverovich
2019-10-09 10:31:17 -07:00
parent a1079e9fd6
commit e4d6d9d7c8
4 changed files with 97 additions and 28 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ TEST(PrintfTest, SwitchArgIndexing) {
TEST(PrintfTest, InvalidArgIndex) {
EXPECT_THROW_MSG(test_sprintf("%0$d", 42), format_error,
"argument index 0 is out of range");
"argument index out of range");
EXPECT_THROW_MSG(test_sprintf("%2$d", 42), format_error,
"argument index out of range");
EXPECT_THROW_MSG(test_sprintf(format("%{}$d", INT_MAX), 42), format_error,