]> git.ipfire.org Git - thirdparty/git.git/commit
t-prio-queue: simplify using compound literals
authorRené Scharfe <l.s.r@web.de>
Tue, 2 Apr 2024 18:30:31 +0000 (20:30 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Apr 2024 20:41:32 +0000 (13:41 -0700)
commit543b2a1083f0fca2eaae86bf8d359aa565981b97
tree61de5f82cb1bd09dc1303d0b3e3aed3bbb135912
parentc2cbfbd2e28cbe27c194d62183b42f27a6a5bb87
t-prio-queue: simplify using compound literals

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>
t/unit-tests/t-prio-queue.c