Added !s command and fixed links bug

This commit is contained in:
Artyom Belousov 2019-05-11 23:39:26 +03:00
parent 27b1385a92
commit 3ee53b7ad1
5 changed files with 70 additions and 12 deletions

View file

@ -35,3 +35,13 @@ func TestGetCardByStringWrong(t *testing.T) {
name := cardsinfo.GetOriginalName("fwijefiwjfew")
assert.Equal(t, "", name)
}
func TestGetCardBySetId(t *testing.T) {
name := cardsinfo.GetNameByCardId("DOM", "207")
assert.Equal(t, "Teferi, Hero of Dominaria", name)
}
func TestGetCardBySetIdWrong(t *testing.T) {
name := cardsinfo.GetNameByCardId("DOM", "1207")
assert.Equal(t, "", name)
}