common/uuid: add test, albeit weak

This commit is contained in:
Mitchell Hashimoto 2013-10-16 21:19:53 -10:00
parent 7d3987d840
commit cfcdeadf53
1 changed files with 12 additions and 0 deletions

12
common/uuid/uuid_test.go Normal file
View File

@ -0,0 +1,12 @@
package uuid
import (
"testing"
)
func TestTimeOrderedUuid(t *testing.T) {
uuid := TimeOrderedUUID()
if len(uuid) != 36 {
t.Fatalf("bad: %s", uuid)
}
}