Skip to content
This repository
Browse code

Odd results from boundary cases

  • Loading branch information...
commit cb12dd612431a47d6ed1bc57845c4cd59644ee7d 1 parent 309bf14
Josh Moore authored November 15, 2011

Showing 1 changed file with 21 additions and 0 deletions. Show diff stats Hide diff stats

  1. 21  spark-test.sh
21  spark-test.sh
@@ -37,3 +37,24 @@ it_handles_decimals() {
37 37
 
38 38
   test $graph = '▂▇'
39 39
 }
  40
+
  41
+it_charts_100_lt_300() {
  42
+  data="1,2,3,4,100,5,10,20,50,300"
  43
+  graph="$($spark $data)"
  44
+
  45
+  test $graph = '▁▁▁▁▃▁▁▁▂'
  46
+}
  47
+
  48
+it_charts_50_lt_100() {
  49
+  data="1,50,100"
  50
+  graph="$($spark $data)"
  51
+
  52
+  test $graph = '▁▇▇'
  53
+}
  54
+
  55
+it_charts_4_lt_8() {
  56
+  data="2,4,8"
  57
+  graph="$($spark $data)"
  58
+
  59
+  test $graph = '▂▇▇'
  60
+}

0 notes on commit cb12dd6

Please sign in to comment.
Something went wrong with that request. Please try again.