From 3fe53d76d8f1c00ad1939fe75824d498d8058a85 Mon Sep 17 00:00:00 2001 From: Will Charczuk Date: Sun, 10 Jul 2016 23:27:38 -0700 Subject: [PATCH] tick test. --- tick_test.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tick_test.go b/tick_test.go index 58a733f..b13330f 100644 --- a/tick_test.go +++ b/tick_test.go @@ -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) +}