1 #include <ctype.h> 2 3 #include <minitest/minitest.h> 4 TEST(ctype,isblank)5TEST(ctype, isblank) { 6 EXPECT_TRUE(isblank(' ')); 7 EXPECT_TRUE(isblank('\t')); 8 EXPECT_FALSE(isblank('\n')); 9 EXPECT_FALSE(isblank('\f')); 10 EXPECT_FALSE(isblank('\r')); 11 } 12 TEST(ctype,isprint)13TEST(ctype, isprint) { 14 EXPECT_TRUE(isprint('a')); 15 EXPECT_TRUE(isprint(' ')); 16 EXPECT_FALSE(isprint('\t')); 17 EXPECT_FALSE(isprint('\n')); 18 EXPECT_FALSE(isprint('\f')); 19 EXPECT_FALSE(isprint('\r')); 20 } 21