]> git.ipfire.org Git - thirdparty/git.git/commit
u-string-list: move "remove duplicates" test to "u-string-list.c"
authorshejialuo <shejialuo@gmail.com>
Sun, 29 Jun 2025 04:28:41 +0000 (12:28 +0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 7 Jul 2025 15:07:47 +0000 (08:07 -0700)
commit6e5b26c3ff639211147ccb2b1ca681c768b8db11
tree1cacdb6b94eddc2feae8092183874936b458e366
parent7e7ce7826534142c069758c13b2d308e901138c0
u-string-list: move "remove duplicates" test to "u-string-list.c"

We use "test-tool string-list remove_duplicates" to test the
"string_list_remove_duplicates" function. As we have introduced the unit
test, we'd better remove the logic from shell script to C program to
improve test speed and readability.

As all the tests in shell script are removed, let's just delete the
"t0063-string-list.sh" and update the "meson.build" file to align with
this change.

Also we could simply remove "DISABLE_SIGN_COMPARE_WARNINGS" due to we
have already deleted related code.

Unfortunately, we cannot totally remove "test-string-list.c" due to that
we would test the performance of sorting about string list by executing
"test-tool string-list sort" in "p0071-sort.sh".

Signed-off-by: shejialuo <shejialuo@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-string-list.c
t/meson.build
t/t0063-string-list.sh [deleted file]
t/unit-tests/u-string-list.c