tangetools/histogram/tests

32 lines
839 B
Plaintext
Raw Permalink Normal View History

2014-03-16 20:44:08 +00:00
#!/bin/bash
echo "## pre space, decimal"
(echo ' 8.999 otte'; echo '16.999 seksten') | histogram
(echo ' 8.999,otte'; echo '16.999,seksten') | histogram --input v,h
echo "## two decimal, only values"
seq 1 .09 2 | histogram --input v
echo "## 1 2 3 command line"
histogram 1 2 3
echo "## a:1 b:2 c:3 command line"
histogram a:1 b:2 c:3
echo "## a 1 b 2 c 3"
(echo a 1; echo b 2; echo c 3) | histogram
echo "## a 1 b 2 c 3"
(echo "a 1"; echo b 2; echo c 3) | histogram
echo "## 1,a 2,b command line"
histogram 1,a 2,b
echo "## 1 2 3 4 command line"
histogram 1 2 3 4
2014-03-16 23:26:36 +00:00
echo "## a 1 b 2 c 3 command line - not ideal"
2014-03-16 20:44:08 +00:00
histogram a 1 b 2 c 3
2014-03-16 23:26:36 +00:00
echo '## "a a":1 b:2 c:3 command line'
2014-03-16 20:44:08 +00:00
histogram "a a":1 b:2 c:3
2014-03-16 23:26:36 +00:00
echo "## null input"
histogram </dev/null
2014-03-16 20:44:08 +00:00
(echo 150 hundredfifty;echo 30 thirty;echo 3 three;echo 6 six) | histogram --format vbH