github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/twinj/uuid/timestamp_test.go (about) 1 package uuid 2 3 /**************** 4 * Date: 15/02/14 5 * Time: 12:19 PM 6 ***************/ 7 8 import ( 9 "testing" 10 ) 11 12 func TestUUID_Timestamp_now(t *testing.T) { 13 sec, nsec := Now() 14 if sec <= 1391463463 { 15 t.Errorf("Expected a value greater than 02/03/2014 @ 9:37pm in UTC but got %d", sec) 16 } 17 if nsec == 0 { 18 t.Error("Expected a value") 19 } 20 }