git/t/unit-tests
René Scharfe 6cf06e9c6e t-ctype: avoid duplicating class names
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>
2024-03-03 09:47:33 -08:00
..
.gitignore
t-basic.c
t-ctype.c t-ctype: avoid duplicating class names 2024-03-03 09:47:33 -08:00
t-mem-pool.c mem-pool: fix big allocations 2023-12-28 12:22:43 -08:00
t-prio-queue.c tests: move t0009-prio-queue.sh to the new unit testing framework 2024-01-22 10:55:01 -08:00
t-strbuf.c
test-lib.c unit-tests: do show relative file paths on non-Windows, too 2024-02-12 08:44:22 -08:00
test-lib.h