test: unknown and extict races for commands
This commit is contained in:
@@ -23,8 +23,11 @@ func TestSendGroup(t *testing.T) {
|
||||
assert.NoError(t, c.CreateShips(Race_0_idx, "Fortress", R0_Planet_0_num, 1))
|
||||
|
||||
assert.ErrorContains(t,
|
||||
g.SendGroup("UnknownRace", 1, 2, 0),
|
||||
g.SendGroup(UnknownRace, 1, 2, 0),
|
||||
e.GenericErrorText(e.ErrInputUnknownRace))
|
||||
assert.ErrorContains(t,
|
||||
g.SendGroup(Race_Extinct.Name, 1, 2, 0),
|
||||
e.GenericErrorText(e.ErrRaceExinct))
|
||||
assert.ErrorContains(t,
|
||||
g.SendGroup(Race_0.Name, 555, 2, 0),
|
||||
e.GenericErrorText(e.ErrInputEntityNotExists))
|
||||
|
||||
Reference in New Issue
Block a user