2016-07-11 02:06:14 -04:00
|
|
|
package chart
|
2016-07-11 02:27:38 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/blendlabs/go-assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGenerateTicksWithStep(t *testing.T) {
|
|
|
|
assert := assert.New(t)
|
|
|
|
|
2016-07-30 12:38:43 -04:00
|
|
|
ticks := GenerateContinuousTicksWithStep(&ContinuousRange{Min: 1.0, Max: 10.0, Domain: 100}, 1.0, FloatValueFormatter, false)
|
2016-07-12 02:32:31 -04:00
|
|
|
assert.Len(ticks, 10)
|
2016-07-11 02:27:38 -04:00
|
|
|
}
|