Test 'hh' and 'h' printf specifiers.

This commit is contained in:
Victor Zverovich 2014-08-06 07:00:04 -07:00
parent 86bbd3c238
commit 8b41b09add

View File

@ -332,9 +332,9 @@ TEST(PrintfTest, Length) {
EXPECT_EQ("-128", sprintf_int<signed char>("%hhd", SCHAR_MAX + 1)); EXPECT_EQ("-128", sprintf_int<signed char>("%hhd", SCHAR_MAX + 1));
EXPECT_EQ("128", sprintf_int<signed char>("%hhu", SCHAR_MAX + 1)); EXPECT_EQ("128", sprintf_int<signed char>("%hhu", SCHAR_MAX + 1));
TestLength<signed char>("hh"); TestLength<signed char>("hh");
//TestLength<unsigned char>("hh"); TestLength<unsigned char>("hh");
//TestLength<short>("h"); TestLength<short>("h");
//TestLength<unsigned short>("h"); TestLength<unsigned short>("h");
//TestLength<long>("l"); //TestLength<long>("l");
//TestLength<unsigned long>("l"); //TestLength<unsigned long>("l");
// TODO: more tests // TODO: more tests