Merge pull request #21 from 178inaba/error_message

Fix test error message
This commit is contained in:
mattn 2017-04-17 13:17:27 +09:00 committed by GitHub
commit f7c198d876
3 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@ func TestGetBlocks(t *testing.T) {
t.Fatalf("want %q but %q", "foo", bl[0].Username) t.Fatalf("want %q but %q", "foo", bl[0].Username)
} }
if bl[1].Username != "bar" { if bl[1].Username != "bar" {
t.Fatalf("want %q but %q", "bar", bl[0].Username) t.Fatalf("want %q but %q", "bar", bl[1].Username)
} }
} }

View File

@ -188,6 +188,6 @@ func TestGetAccountFollowing(t *testing.T) {
t.Fatalf("want %q but %q", "foo", fl[0].Username) t.Fatalf("want %q but %q", "foo", fl[0].Username)
} }
if fl[1].Username != "bar" { if fl[1].Username != "bar" {
t.Fatalf("want %q but %q", "bar", fl[0].Username) t.Fatalf("want %q but %q", "bar", fl[1].Username)
} }
} }

View File

@ -98,7 +98,7 @@ func TestGetRebloggedBy(t *testing.T) {
t.Fatalf("want %q but %q", "foo", rbs[0].Username) t.Fatalf("want %q but %q", "foo", rbs[0].Username)
} }
if rbs[1].Username != "bar" { if rbs[1].Username != "bar" {
t.Fatalf("want %q but %q", "bar", rbs[0].Username) t.Fatalf("want %q but %q", "bar", rbs[1].Username)
} }
} }
@ -134,7 +134,7 @@ func TestGetFavouritedBy(t *testing.T) {
t.Fatalf("want %q but %q", "foo", fbs[0].Username) t.Fatalf("want %q but %q", "foo", fbs[0].Username)
} }
if fbs[1].Username != "bar" { if fbs[1].Username != "bar" {
t.Fatalf("want %q but %q", "bar", fbs[0].Username) t.Fatalf("want %q but %q", "bar", fbs[1].Username)
} }
} }