From e1bc4c143d3f9b98406c29df22c7ac4a7336be01 Mon Sep 17 00:00:00 2001 From: 178inaba <178inaba@users.noreply.github.com> Date: Mon, 17 Apr 2017 13:03:31 +0900 Subject: [PATCH] Fix test error message --- accounts_test.go | 2 +- mastodon_test.go | 2 +- status_test.go | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accounts_test.go b/accounts_test.go index be96897..1b9851c 100644 --- a/accounts_test.go +++ b/accounts_test.go @@ -59,7 +59,7 @@ func TestGetBlocks(t *testing.T) { t.Fatalf("want %q but %q", "foo", bl[0].Username) } 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) } } diff --git a/mastodon_test.go b/mastodon_test.go index 843df4c..4e9cee4 100644 --- a/mastodon_test.go +++ b/mastodon_test.go @@ -188,6 +188,6 @@ func TestGetAccountFollowing(t *testing.T) { t.Fatalf("want %q but %q", "foo", fl[0].Username) } 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) } } diff --git a/status_test.go b/status_test.go index 115082c..0384ee1 100644 --- a/status_test.go +++ b/status_test.go @@ -98,7 +98,7 @@ func TestGetRebloggedBy(t *testing.T) { t.Fatalf("want %q but %q", "foo", rbs[0].Username) } 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) } 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) } }