From d22ce09b5b4927ee7167e7d06d2da62121695009 Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Wed, 21 Jan 2015 10:07:48 +0100 Subject: [PATCH] Fix test: wrong arguments order for format string. Also, remove unnecessary second argument in for loop. --- uniuri_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uniuri_test.go b/uniuri_test.go index 28b882c..c564c60 100644 --- a/uniuri_test.go +++ b/uniuri_test.go @@ -34,13 +34,13 @@ func TestNew(t *testing.T) { // Generate 1000 uniuris and check that they are unique uris := make([]string, 1000) - for i, _ := range uris { + for i := range uris { uris[i] = New() } for i, u := range uris { for j, u2 := range uris { 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) } } }