go-chart/util/time_test.go

17 lines
258 B
Go
Raw Normal View History

2017-05-14 19:33:48 -04:00
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)
}