wip
This commit is contained in:
parent
7d1401898a
commit
7ba2992824
6 changed files with 403 additions and 36 deletions
16
util/time_test.go
Normal file
16
util/time_test.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue