From e04b07921f13cf30f934b8c01c91b33746d931fa Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 6 Aug 2014 07:16:49 -0700 Subject: [PATCH] Debug length specifier test. --- test/printf-test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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