go-chart/tick_test.go

15 lines
269 B
Go
Raw Normal View History

2016-07-11 08:06:14 +02:00
package chart
2016-07-11 08:27:38 +02:00
import (
"testing"
"github.com/blendlabs/go-assert"
)
func TestGenerateTicksWithStep(t *testing.T) {
assert := assert.New(t)
ticks := GenerateTicksWithStep(Range{Min: 1.0, Max: 10.0, Domain: 100}, 1.0, FloatValueFormatter)
assert.Len(ticks, 9)
}