Test names like "basic" are mentioned seven times in the code (ignoring case): Twice when defining the input and result macros, thrice when defining the test function, and twice again when calling it. Reduce that to a single time by using compound literals to pass the input and result arrays via TEST_INPUT to test_prio_queue(). 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 | ||