1
0
Fork 0

Adding upstream version 1.2.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-05-18 17:35:34 +02:00
parent 63b0fff2f9
commit 04bba8eb8a
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
23 changed files with 2456 additions and 0 deletions

19
uuid_test.go Normal file
View file

@ -0,0 +1,19 @@
package feeds
import (
"testing"
)
func TestUUID(t *testing.T) {
s := NewUUID()
s2 := NewUUID()
if len(s) != 16 {
t.Errorf("Expecting len of 16, got %d\n", len(s))
}
if len(s.String()) != 36 {
t.Errorf("Expecting uuid hex string len of 36, got %d\n", len(s.String()))
}
if s == s2 {
t.Errorf("Expecting different UUIDs to be different, but they are the same.\n")
}
}