From: Pádraig Brady
Date: Sat, 12 Jul 2025 18:58:06 +0000 (+0100) Subject: tests: sort: add a test for equivalent floats X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;p=thirdparty%2Fcoreutils.git tests: sort: add a test for equivalent floats * tests/sort/sort-float.sh: Ensure equivalent floats are treated as such. --- diff --git a/tests/sort/sort-float.sh b/tests/sort/sort-float.sh index 433a21970..1439edd70 100755 --- a/tests/sort/sort-float.sh +++ b/tests/sort/sort-float.sh @@ -94,4 +94,7 @@ $LDBL_MAX compare exp out || fail=1 done +# Ensure equal floats are treated as such +test $(printf '%s\n' 10 1e1 | sort -gu | wc -l) = 1 || fail=1 + Exit $fail