mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
sort: fix debug output for zeros / invalid numbers
We were reporting "no match" when sorting something like "0 ". This is because we don't distinguish between 0 and invalid lines when sorting. For debug output we have to get this information back.
This commit is contained in:
parent
3625d98fc3
commit
06b3092f5f
9 changed files with 75 additions and 14 deletions
|
@ -1,3 +1,4 @@
|
|||
K
|
||||
844K
|
||||
981K
|
||||
11M
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
K
|
||||
^ no match for key
|
||||
_
|
||||
844K
|
||||
____
|
||||
____
|
||||
|
|
1
tests/fixtures/sort/human_block_sizes.txt
vendored
1
tests/fixtures/sort/human_block_sizes.txt
vendored
|
@ -9,3 +9,4 @@
|
|||
844K
|
||||
981K
|
||||
13M
|
||||
K
|
5
tests/fixtures/sort/numeric_trailing_chars.expected
vendored
Normal file
5
tests/fixtures/sort/numeric_trailing_chars.expected
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
-.05,
|
||||
-x
|
||||
0.abc
|
||||
0foo
|
||||
100
|
15
tests/fixtures/sort/numeric_trailing_chars.expected.debug
vendored
Normal file
15
tests/fixtures/sort/numeric_trailing_chars.expected.debug
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
-.05,
|
||||
____
|
||||
_____
|
||||
-x
|
||||
^ no match for key
|
||||
__
|
||||
0.abc
|
||||
__
|
||||
_____
|
||||
0foo
|
||||
_
|
||||
____
|
||||
100
|
||||
___
|
||||
____
|
5
tests/fixtures/sort/numeric_trailing_chars.txt
vendored
Normal file
5
tests/fixtures/sort/numeric_trailing_chars.txt
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
0foo
|
||||
0.abc
|
||||
100
|
||||
-.05,
|
||||
-x
|
Loading…
Add table
Add a link
Reference in a new issue