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