Added live_period for Location (tests)

This commit is contained in:
pr0head 2017-10-13 22:53:47 +03:00
parent 65947daaab
commit 7031d820be
2 changed files with 4 additions and 3 deletions

View file

@ -126,13 +126,14 @@ func TestNewInlineQueryResultDocument(t *testing.T) {
}
func TestNewInlineQueryResultLocation(t *testing.T) {
result := tgbotapi.NewInlineQueryResultLocation("id", "name", 40, 50)
result := tgbotapi.NewInlineQueryResultLocation("id", "name", 40, 50, 86400)
if result.Type != "location" ||
result.ID != "id" ||
result.Title != "name" ||
result.Latitude != 40 ||
result.Longitude != 50 {
result.Longitude != 50 ||
result.LivePeriod != 86400 {
t.Fail()
}
}