diff --git a/shortuuid_test.go b/shortuuid_test.go index 8ef55ae..18516c0 100644 --- a/shortuuid_test.go +++ b/shortuuid_test.go @@ -148,7 +148,9 @@ func TestNewWithNamespace(t *testing.T) { } } - if NewWithNamespace("") == NewWithNamespace("") { + u1 := NewWithNamespace("") + u2 := NewWithNamespace("") + if u1 == u2 { t.Errorf("NewWithNamespace should generate random uuid with empty namespace") } }