Skip to content

GNUTest sort-float fails #8031

@drinkcat

Description

@drinkcat

./util/run-gnu-test.sh tests/sort/sort-float

--- exp	2025-05-29 19:17:40.585712112 +0200
+++ out	2025-05-29 19:17:40.587272316 +0200
@@ -3,9 +3,9 @@
 -3.4028235e+38
 -1.1754944e-38
 -2.2250738585072014e-308
--3.3621031431120935063e-4932
-0
 3.3621031431120935063e-4932
+0
+-3.3621031431120935063e-4932
 2.2250738585072014e-308
 1.1754944e-38
 3.4028235e+38

Simple repro:

$ cat > digits <<END
0
-3.3621031431120935063e-4932
3.3621031431120935063e-4932
END
$ env sort -sg digits 
-3.3621031431120935063e-4932
0
3.3621031431120935063e-4932
$ cargo run -p uu_sort -- -sg digits
0
-3.3621031431120935063e-4932
3.3621031431120935063e-4932

I've been looking at a bunch of number issues, I can look at this too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions