tests: sort: add a test for equivalent floats

* tests/sort/sort-float.sh: Ensure equivalent floats
are treated as such.
This commit is contained in:
Pádraig Brady committed 2025-07-12 19:58:06 +01:00
1 parent 3a9ec02138
commit 083f89528e
1 file changed
+3
+3
View File
@@ -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