Permalink
Browse files

Fix odd results

The loop was only going up to the size of numbers
as opposed to the size of tickets.
  • Loading branch information...
1 parent cb12dd6 commit c339fa5003516ce0d6a729068c838249b1f098f9 @joshmoore joshmoore committed Nov 15, 2011
Showing with 5 additions and 4 deletions.
  1. +1 −1 spark
  2. +4 −3 spark-test.sh
View
2 spark
@@ -113,7 +113,7 @@ print_tick()
{
tier=$(tier)
- for (( i = 0 ; i < ${#numbers[@]} ; i++ ))
+ for (( i = 0 ; i < ${#ticks[@]} ; i++ ))
do
number=$1
View
@@ -42,19 +42,20 @@ it_charts_100_lt_300() {
data="1,2,3,4,100,5,10,20,50,300"
graph="$($spark $data)"
- test $graph = '▁▁▁▁▃▁▁▁▂'
+ test $graph = '▁▁▁▁▃▁▁▁▂'
}
it_charts_50_lt_100() {
data="1,50,100"
graph="$($spark $data)"
- test $graph = ''
+ test $graph = ''
}
it_charts_4_lt_8() {
data="2,4,8"
graph="$($spark $data)"
- test $graph = '▂▇▇'
+ test $graph = '▂▄▇'
+
}

0 comments on commit c339fa5

Please sign in to comment.