Permalink
Browse files

Odd results from boundary cases

  • Loading branch information...
1 parent 309bf14 commit cb12dd612431a47d6ed1bc57845c4cd59644ee7d @joshmoore joshmoore committed Nov 15, 2011
Showing with 21 additions and 0 deletions.
  1. +21 −0 spark-test.sh
View
@@ -37,3 +37,24 @@ it_handles_decimals() {
test $graph = '▂▇'
}
+
+it_charts_100_lt_300() {
+ data="1,2,3,4,100,5,10,20,50,300"
+ graph="$($spark $data)"
+
+ test $graph = '▁▁▁▁▃▁▁▁▂'
+}
+
+it_charts_50_lt_100() {
+ data="1,50,100"
+ graph="$($spark $data)"
+
+ test $graph = '▁▇▇'
+}
+
+it_charts_4_lt_8() {
+ data="2,4,8"
+ graph="$($spark $data)"
+
+ test $graph = '▂▇▇'
+}

0 comments on commit cb12dd6

Please sign in to comment.