diff options
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test_human_readable.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_human_readable.test b/tests/test_human_readable.test new file mode 100755 index 00000000..a66b4fda --- /dev/null +++ b/tests/test_human_readable.test @@ -0,0 +1,10 @@ +#!/bin/bash + +[ -f testing.sh ] && . testing.sh + +#testing "name" "command" "result" "infile" "stdin" + +testing "human_readable" "test_human_readable 123456789" "123M\n" "" "" +testing "human_readable -b" "test_human_readable -b 123456789" "123MB\n" "" "" +testing "human_readable -s" "test_human_readable -s 123456789" "123 M\n" "" "" +testing "human_readable -i" "test_human_readable -i 5675" "5.5k\n" "" "" |