]> git.ipfire.org Git - thirdparty/glibc.git/commit
stdlib: Verify heapsort for two-element cases
authorKuan-Wei Chiu <visitorckw@gmail.com>
Tue, 16 Jan 2024 02:16:57 +0000 (10:16 +0800)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 16 Jan 2024 14:00:51 +0000 (11:00 -0300)
commit1bb28b7b4f01709b841c86850e1bb83b554feafe
tree16c0f016e308e368613139c115a9e9d2e43432a8
parent74d2731a5fb2676b64092bc25e7f193db1b17b2b
stdlib: Verify heapsort for two-element cases

Adjust the testing approach to start from scenarios with only 2
elements, as insertion sort no longer handles such cases.

Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
stdlib/tst-qsort4.c