]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: adapt priority queue test to use clar test framework
authorSeyi Kuforiji <kuforiji98@gmail.com>
Fri, 17 Jan 2025 12:29:25 +0000 (13:29 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jan 2025 22:35:12 +0000 (14:35 -0800)
commit8b702f93dd4d239acd07f9a4991be3297ef333c9
tree6195f0965e28930d19e19a84992451b2af95429e
parentc143dfa7ed4115d1fd7d23150a0314768377f108
t/unit-tests: adapt priority queue test to use clar test framework

Convert the prio-queue test script to clar framework by using clar
assertions where necessary. Test functions are created as a standalone
to test different cases.

update the type of the variable `j` from int to `size_t`, this ensures
compatibility with the type used for result_size, which is also size_t,
preventing a potential warning or error caused by comparisons between
signed and unsigned integers.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Seyi Kuforiji <kuforiji98@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
t/meson.build
t/unit-tests/t-prio-queue.c [deleted file]
t/unit-tests/u-prio-queue.c [new file with mode: 0644]