Fixed tests for Go 1.11

pull/88/head
Christian Muehlhaeuser 2018-11-24 06:51:54 +01:00 committed by mattn
parent c5945152ec
commit 3daf61de23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func TestGetStatus(t *testing.T) {
t.Fatal("should have emojis") t.Fatal("should have emojis")
} }
if status.Emojis[0].ShortCode != "💩" { if status.Emojis[0].ShortCode != "💩" {
t.Fatalf("want %q but %q", "💩", status.Emojis[0]) t.Fatalf("want %q but %q", "💩", status.Emojis[0].ShortCode)
} }
if status.Emojis[0].URL != "http://example.com" { if status.Emojis[0].URL != "http://example.com" {
t.Fatalf("want %q but %q", "https://example.com", status.Emojis[0].URL) t.Fatalf("want %q but %q", "https://example.com", status.Emojis[0].URL)