go-chart/tick_test.go
2016-07-30 09:38:43 -07:00

15 lines
298 B
Go

package chart
import (
"testing"
"github.com/blendlabs/go-assert"
)
func TestGenerateTicksWithStep(t *testing.T) {
assert := assert.New(t)
ticks := GenerateContinuousTicksWithStep(&ContinuousRange{Min: 1.0, Max: 10.0, Domain: 100}, 1.0, FloatValueFormatter, false)
assert.Len(ticks, 10)
}