tick test.
This commit is contained in:
parent
805f10a923
commit
3fe53d76d8
1 changed files with 13 additions and 0 deletions
13
tick_test.go
13
tick_test.go
|
@ -1 +1,14 @@
|
||||||
package chart
|
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)
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue