Tests: Add unit tests

This commit is contained in:
graciousgrey
2024-07-16 17:29:26 +02:00
parent 6af5303139
commit 5e94686a0d
5 changed files with 73 additions and 7 deletions

View File

@@ -19,3 +19,11 @@ func BenchmarkUUID(b *testing.B) {
UUID()
}
}
func TestState(t *testing.T) {
for n := 0; n < 5; n++ {
s := State()
t.Logf("UUID %d: %s", n, s)
assert.Equal(t, 36, len(s))
}
}