From 5ecec182583220ba2465a97433c5083257f87316 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 16 Oct 2013 21:19:53 -1000 Subject: [PATCH] common/uuid: add test, albeit weak --- common/uuid/uuid_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 common/uuid/uuid_test.go diff --git a/common/uuid/uuid_test.go b/common/uuid/uuid_test.go new file mode 100644 index 000000000..8a853f1be --- /dev/null +++ b/common/uuid/uuid_test.go @@ -0,0 +1,12 @@ +package uuid + +import ( + "testing" +) + +func TestTimeOrderedUuid(t *testing.T) { + uuid := TimeOrderedUUID() + if len(uuid) != 36 { + t.Fatalf("bad: %s", uuid) + } +}