git/t/unit-tests
René Scharfe 980013e90d t-ctype: allow NUL anywhere in the specification string
Replace the custom function is_in() for looking up a character in the
specification string with memchr(3) and sizeof.  This is shorter,
simpler and allows NUL anywhere in the string, which may come in handy
if we ever want to support more character classes that contain it.

Getting the string size using sizeof only works in a macro and with a
string constant.  Use ARRAY_SIZE and compile-time checks to make sure we
are not passed a string pointer.

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: allow NUL anywhere in the specification string 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