go-chart/util/time_test.go
Will Charczuk 7ba2992824 wip
2017-05-14 16:33:48 -07:00

17 lines
258 B
Go

package util
import (
"testing"
"time"
assert "github.com/blendlabs/go-assert"
)
func TestTimeFromFloat64(t *testing.T) {
assert := assert.New(t)
now := time.Now()
assert.InTimeDelta(now, Time.FromFloat64(Time.ToFloat64(now)), time.Microsecond)
}