aboutsummaryrefslogtreecommitdiff
path: root/tests/test_human_readable.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-03-26 17:36:33 -0500
committerRob Landley <rob@landley.net>2018-03-26 17:36:33 -0500
commit16c4357f0d0df0ce4f91d424cc57ce571ccf4e91 (patch)
tree46aad6b838a96c243465af0cd6c70d7ac37a70dd /tests/test_human_readable.test
parent48ac4c6c4fb7d25040cadd3c046578dd7530da00 (diff)
downloadtoybox-16c4357f0d0df0ce4f91d424cc57ce571ccf4e91.tar.gz
Rename demo_human_readable.c->demo_number.c and have it do atolx() too.
Diffstat (limited to 'tests/test_human_readable.test')
-rwxr-xr-xtests/test_human_readable.test19
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/test_human_readable.test b/tests/test_human_readable.test
deleted file mode 100755
index 0f1bfb7a..00000000
--- a/tests/test_human_readable.test
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/bash
-
-[ -f testing.sh ] && . testing.sh
-
-#testing "name" "command" "result" "infile" "stdin"
-
-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 "-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" "" ""