Fix test: wrong arguments order for format string.

Also, remove unnecessary second argument in for loop.
This commit is contained in:
Dmitry Chestnykh 2015-01-21 10:07:48 +01:00
parent b317a711d1
commit d22ce09b5b

View File

@ -34,13 +34,13 @@ func TestNew(t *testing.T) {
// Generate 1000 uniuris and check that they are unique // Generate 1000 uniuris and check that they are unique
uris := make([]string, 1000) uris := make([]string, 1000)
for i, _ := range uris { for i := range uris {
uris[i] = New() uris[i] = New()
} }
for i, u := range uris { for i, u := range uris {
for j, u2 := range uris { for j, u2 := range uris {
if i != j && u == u2 { if i != j && u == u2 {
t.Fatalf("not unique: %d:%q and %d:%q", i, j, u, u2) t.Fatalf("not unique: %d:%q and %d:%q", i, u, j, u2)
} }
} }
} }