mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
test-ctype: check EOF
The character classifiers are supposed to allow passing EOF to them, a negative value. It isn't part of any character class. Extend the tests to cover that. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
0d1bd1dfb3
commit
31885f64e9
@ -28,6 +28,8 @@ static int is_in(const char *s, int ch)
|
||||
if (is_in(s, i) != t(i)) \
|
||||
report_error(#t, i); \
|
||||
} \
|
||||
if (t(EOF)) \
|
||||
report_error(#t, EOF); \
|
||||
}
|
||||
|
||||
#define DIGIT "0123456789"
|
||||
|
Loading…
Reference in New Issue
Block a user