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