Adding upstream version 1.2.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
63b0fff2f9
commit
04bba8eb8a
23 changed files with 2456 additions and 0 deletions
19
uuid_test.go
Normal file
19
uuid_test.go
Normal 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")
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue