Add missing t.Fail()

bot-api-6.1
Syfaro 2016-04-14 14:04:35 -05:00
parent e7b9f16e73
commit 0252f39e17
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func TestNewInlineQueryResultVideo(t *testing.T) {
if result.Type != "video" ||
result.ID != "id" ||
result.URL != "google.com" {
t.Fail()
}
}
@ -62,6 +63,7 @@ func TestNewInlineQueryResultAudio(t *testing.T) {
result.ID != "id" ||
result.URL != "google.com" ||
result.Title != "title" {
t.Fail()
}
}
@ -72,6 +74,7 @@ func TestNewInlineQueryResultVoice(t *testing.T) {
result.ID != "id" ||
result.URL != "google.com" ||
result.Title != "title" {
t.Fail()
}
}
@ -83,6 +86,7 @@ func TestNewInlineQueryResultDocument(t *testing.T) {
result.URL != "google.com" ||
result.Title != "title" ||
result.MimeType != "mime/type" {
t.Fail()
}
}
@ -94,6 +98,7 @@ func TestNewInlineQueryResultLocation(t *testing.T) {
result.Title != "name" ||
result.Latitude != 40 ||
result.Longitude != 50 {
t.Fail()
}
}