common/uuid: add test, albeit weak
This commit is contained in:
parent
386d72c31a
commit
5ecec18258
|
@ -0,0 +1,12 @@
|
||||||
|
package uuid
|
||||||
|
|
||||||
|
import (
|
||||||
|
"testing"
|
||||||
|
)
|
||||||
|
|
||||||
|
func TestTimeOrderedUuid(t *testing.T) {
|
||||||
|
uuid := TimeOrderedUUID()
|
||||||
|
if len(uuid) != 36 {
|
||||||
|
t.Fatalf("bad: %s", uuid)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue