~chrisppy/go-barefeed

ref: 63fc114fd6c8a8779e44c7042a5c1a6f543a76fb go-barefeed/time_test.go -rw-r--r-- 221 bytes
63fc114fChris Palmer updates from schema 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package barefeed

import (
	"testing"
	"time"
)

func TestTimestamp(t *testing.T) {
	ts := Timestamp(time.Now().UTC().Unix())
	tm := ts.Time()
	if ts != ToTimestamp(tm) {
		t.Errorf("Expected %v, actual %v", ts, tm)
	}
}