]> git.ipfire.org Git - thirdparty/git.git/commit
t/unit-tests: convert strcmp-offset test to use clar test framework
authorSeyi Kuforiji <kuforiji98@gmail.com>
Fri, 31 Jan 2025 22:14:20 +0000 (23:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 31 Jan 2025 22:58:45 +0000 (14:58 -0800)
commitaf8bf677c150144166454f311642825a0b08e506
tree8d574ecf86a1d65f0b52199cb8b40415f2da0a80
parent4b995465b2ed97cb6df5d48bcb843f7f631627bf
t/unit-tests: convert strcmp-offset test to use clar test framework

Adapt strcmp-offset test script to clar framework by using clar
assertions where necessary. Introduce `test_strcmp_offset__empty()` to
verify `check_strcmp_offset()` behavior when both input strings are
empty. This ensures the function correctly handles edge cases and
returns expected values.

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