mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-17 08:13:35 +00:00
24 lines
401 B
Go
24 lines
401 B
Go
package index
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
func TestTimeFrame(t *testing.T) {
|
|
|
|
Convey("Test ID", t, func() {
|
|
const shortForm = "2006-01-02 15:04"
|
|
x, _ := time.Parse(shortForm, "2014-01-01 10:03")
|
|
fmt.Println(x)
|
|
|
|
m := getTimeIds(uint64(1), x, YMDH, 2014)
|
|
spew.Dump(m)
|
|
So(1, ShouldEqual, 1)
|
|
})
|
|
|
|
}
|