This commit is contained in:
Will Charczuk 2017-05-14 16:33:48 -07:00
parent 7d1401898a
commit 7ba2992824
6 changed files with 403 additions and 36 deletions

16
util/time_test.go Normal file
View file

@ -0,0 +1,16 @@
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)
}