Skip to content
This repository
Browse code

Fix odd results

The loop was only going up to the size of numbers
as opposed to the size of tickets.
  • Loading branch information...
commit c339fa5003516ce0d6a729068c838249b1f098f9 1 parent cb12dd6
Josh Moore joshmoore authored

Showing 2 changed files with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +1 1  spark
  2. +4 3 spark-test.sh
2  spark
@@ -113,7 +113,7 @@ print_tick()
113 113 {
114 114 tier=$(tier)
115 115
116   - for (( i = 0 ; i < ${#numbers[@]} ; i++ ))
  116 + for (( i = 0 ; i < ${#ticks[@]} ; i++ ))
117 117 do
118 118
119 119 number=$1
7 spark-test.sh
@@ -42,19 +42,20 @@ it_charts_100_lt_300() {
42 42 data="1,2,3,4,100,5,10,20,50,300"
43 43 graph="$($spark $data)"
44 44
45   - test $graph = '▁▁▁▁▃▁▁▁▂'
  45 + test $graph = '▁▁▁▁▃▁▁▁▂'
46 46 }
47 47
48 48 it_charts_50_lt_100() {
49 49 data="1,50,100"
50 50 graph="$($spark $data)"
51 51
52   - test $graph = '▁▇'
  52 + test $graph = '▁▇'
53 53 }
54 54
55 55 it_charts_4_lt_8() {
56 56 data="2,4,8"
57 57 graph="$($spark $data)"
58 58
59   - test $graph = '▂▇▇'
  59 + test $graph = '▂▄▇'
  60 +
60 61 }

0 comments on commit c339fa5

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