some regression tests

This commit is contained in:
Will Charczuk 2016-07-13 11:50:22 -07:00
parent 07c96b1948
commit c7170a2650
5 changed files with 61 additions and 2 deletions

View file

@ -9,6 +9,11 @@ func GenerateTicksWithStep(ra Range, step float64, vf ValueFormatter) []Tick {
Value: cursor,
Label: vf(cursor),
})
// this guard is in place in case step is super, super small.
if len(ticks) > DefaultTickCountSanityCheck {
return ticks
}
}
return ticks
}