aboutsummaryrefslogtreecommitdiff
path: root/tests/test_human_readable.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
committerRob Landley <rob@landley.net>2016-03-02 15:20:04 -0600
commit336c44adca1768ada1e1e2f4d7dbbc33e994e582 (patch)
tree9780ee9602ffbca6b04e472d3ac0d158f92ac49c /tests/test_human_readable.test
parenteb830728b12152702c3852d079ad5c8a7f6e709b (diff)
downloadtoybox-336c44adca1768ada1e1e2f4d7dbbc33e994e582.tar.gz
Factor out command name at the start of test name, have runtest.sh print it.
Diffstat (limited to 'tests/test_human_readable.test')
-rwxr-xr-xtests/test_human_readable.test16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_human_readable.test b/tests/test_human_readable.test
index 26ebd668..0f1bfb7a 100755
--- a/tests/test_human_readable.test
+++ b/tests/test_human_readable.test
@@ -4,16 +4,16 @@
#testing "name" "command" "result" "infile" "stdin"
-testing "test_human_readable l 1024" "test_human_readable 123456789" "118M\n" "" ""
-testing "test_human_readable l 1000" "test_human_readable -i 123456789" "123M\n" "" ""
-testing "test_human_readable s 1024" "test_human_readable 5675" "5.5K\n" "" ""
-testing "test_human_readable s 1000" "test_human_readable -i 5675" "5.6k\n" "" ""
+testing "l 1024" "test_human_readable 123456789" "118M\n" "" ""
+testing "l 1000" "test_human_readable -i 123456789" "123M\n" "" ""
+testing "s 1024" "test_human_readable 5675" "5.5K\n" "" ""
+testing "s 1000" "test_human_readable -i 5675" "5.6k\n" "" ""
# An example input where we give a better result than coreutils.
# 267350/1024=261.08. We say 261K and coreutils says 262K.
testing "test_human_readable" "test_human_readable 267350" "261K\n" "" ""
-testing "test_human_readable -b" "test_human_readable -b 123" "123B\n" "" ""
-testing "test_human_readable -b" "test_human_readable -b 123456789" "118M\n" "" ""
-testing "test_human_readable -s" "test_human_readable -s 123456789" "118 M\n" "" ""
-testing "test_human_readable -bs" "test_human_readable -bs 123456789" "118 M\n" "" ""
+testing "-b" "test_human_readable -b 123" "123B\n" "" ""
+testing "-b" "test_human_readable -b 123456789" "118M\n" "" ""
+testing "-s" "test_human_readable -s 123456789" "118 M\n" "" ""
+testing "-bs" "test_human_readable -bs 123456789" "118 M\n" "" ""