tick test.

This commit is contained in:
Will Charczuk 2016-07-10 23:27:38 -07:00
parent 805f10a923
commit 3fe53d76d8

View File

@ -1 +1,14 @@
package chart
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)
}