aboutsummaryrefslogtreecommitdiff
path: root/tests/test_human_readable.test
blob: a66b4fdac26f46d1003d2b009d0606bcb5dd367a (plain)
1
2
3
4
5
6
7
8
9
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" "" ""