diff --git a/test/printf-test.cc b/test/printf-test.cc index bc116285..aa8def9a 100644 --- a/test/printf-test.cc +++ b/test/printf-test.cc @@ -329,12 +329,12 @@ void TestLength(const char *length_spec) { } TEST(PrintfTest, Length) { - EXPECT_EQ("-128", sprintf_int("%hhd", SCHAR_MAX + 1)); - EXPECT_EQ("128", sprintf_int("%hhu", SCHAR_MAX + 1)); + EXPECT_EQ("-1", sprintf_int("%hhd", UCHAR_MAX)); + EXPECT_EQ("255", sprintf_int("%hhu", UCHAR_MAX)); TestLength("hh"); - TestLength("hh"); - TestLength("h"); - TestLength("h"); + //TestLength("hh"); + //TestLength("h"); + //TestLength("h"); //TestLength("l"); //TestLength("l"); // TODO: more tests