OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a73786
)
Add test for last sort commit.
author
Rob Landley
<rob@landley.net>
Mon, 26 Dec 2016 03:22:23 +0000
(21:22 -0600)
committer
Rob Landley
<rob@landley.net>
Mon, 26 Dec 2016 03:22:23 +0000
(21:22 -0600)
tests/sort.test
patch
|
blob
|
history
diff --git
a/tests/sort.test
b/tests/sort.test
index
cda3db5
..
930403e
100755
(executable)
--- a/
tests/sort.test
+++ b/
tests/sort.test
@@
-96,6
+96,9
@@
testing "" "sort -k2,2f" "A b b\na B C\na B a\n" "" "a B a\nA b b\na B C\n"
testing "" "sort -k2,2" "a B C\na B a\nA b b\n" "" "a B a\nA b b\na B C\n"
testing "" "sort -f -k2,2" "A b b\na B C\na B a\n" "" "a B a\nA b b\na B C\n"
+testing "" "sort -t, -k3n" "3,4,1,2\n4,1,2,3\n1,2,3,4\n2,3,4,1\n" "" \
+ "1,2,3,4\n2,3,4,1\n4,1,2,3\n3,4,1,2\n"
+
optional SORT_FLOAT
# not numbers < NaN < -infinity < numbers < +infinity