Added !s command and fixed links bug
This commit is contained in:
parent
27b1385a92
commit
3ee53b7ad1
5 changed files with 70 additions and 12 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue