Skip to content

Commit 6710b68

Browse files
committed
Merge branch 'rs/test-ctype-eof'
ctype tests have been taught to test EOF, too. * rs/test-ctype-eof: test-ctype: check EOF
2 parents 5597cfd + 31885f6 commit 6710b68

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/helper/test-ctype.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ static int is_in(const char *s, int ch)
2727
if (is_in(s, i) != t(i)) \
2828
report_error(#t, i); \
2929
} \
30+
if (t(EOF)) \
31+
report_error(#t, EOF); \
3032
}
3133

3234
#define DIGIT "0123456789"

0 commit comments

Comments
 (0)