git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/feeds/uuid_test.go (about) 1 package feeds 2 3 // import ( 4 // "testing" 5 // ) 6 7 // func TestUUID(t *testing.T) { 8 // s := NewUUID() 9 // s2 := NewUUID() 10 // if len(s) != 16 { 11 // t.Errorf("Expecting len of 16, got %d\n", len(s)) 12 // } 13 // if len(s.String()) != 36 { 14 // t.Errorf("Expecting uuid hex string len of 36, got %d\n", len(s.String())) 15 // } 16 // if s == s2 { 17 // t.Errorf("Expecting different UUIDs to be different, but they are the same.\n") 18 // } 19 // }