summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2022-01-05 12:05:55 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2022-01-05 12:05:55 +0100
commit34e0bb3931b595e7a48061255692ec4ff29499c5 (patch)
tree7d4095eac56be1bf6d824180a7c102a4e31e680b /testsuite
parentcc7d2e21780c28608b00a4faf0fed297527bcbf4 (diff)
downloadbusybox-34e0bb3931b595e7a48061255692ec4ff29499c5.tar.gz
sort: support -h
function old new delta static.scale_suffix - 62 +62 .rodata 104304 104336 +32 compare_keys 820 848 +28 packed_usage 34159 34184 +25 static.suffix - 9 +9 sort_opt_str 37 38 +1 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/0 up/down: 157/0) Total: 157 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/sort.tests29
1 files changed, 29 insertions, 0 deletions
diff --git a/testsuite/sort.tests b/testsuite/sort.tests
index 5375f93de..ff33e21b4 100755
--- a/testsuite/sort.tests
+++ b/testsuite/sort.tests
@@ -188,6 +188,35 @@ c 1
d 2
" ""
+testing "sort -h" \
+"sort -h input" "\
+3e
+4m
+5y
+1023
+1024
+1025
+3000
+2K
+3k
+1M
+2E
+1Y
+" "\
+1Y
+5y
+1M
+2E
+3k
+3e
+2K
+4m
+1023
+1025
+3000
+1024
+" ""
+
# testing "description" "command(s)" "result" "infile" "stdin"
exit $FAILCOUNT