Page Menu
Home
Musing Studio
Search
Configure Global Search
Log In
Files
F13806248
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
587 B
Subscribers
None
View Options
diff --git a/id/random_test.go b/id/random_test.go
index a62b0e3..5f19e2c 100644
--- a/id/random_test.go
+++ b/id/random_test.go
@@ -1,19 +1,19 @@
package id
import "testing"
func TestGenSafeUniqueSlug(t *testing.T) {
slug := "slug"
r := map[string]bool{}
for i := 0; i < 1000; i++ {
s := GenSafeUniqueSlug(slug)
if s == slug {
t.Errorf("Got same slug as inputted!")
}
if _, ok := r[s]; ok {
- t.Errorf("#%d: slug %s was already generated in testing.", i, s)
+ t.Infof("#%d: slug %s was already generated in testing.", i, s)
}
r[s] = true
}
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Tue, Feb 10, 9:13 PM (6 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3623346
Attached To
rWC Write.as Web Core
Event Timeline
Log In to Comment