mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
6cf06e9c6e
TEST_CTYPE_FUNC defines a function for testing a character classifier, TEST_CHAR_CLASS calls it, causing the class name to be mentioned twice. Avoid the need to define a class-specific function by letting TEST_CHAR_CLASS do all the work. This is done by using the internal functions test__run_begin() and test__run_end(), but they do exist to be used in test macros after all. Alternatively we could unroll the loop to provide a very long expression that tests all 256 characters and EOF and hand that to TEST, but that seems awkward and hard to read. No change of behavior or output intended. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
.gitignore | ||
t-basic.c | ||
t-ctype.c | ||
t-mem-pool.c | ||
t-prio-queue.c | ||
t-strbuf.c | ||
test-lib.c | ||
test-lib.h |