test: unknown and extict races for commands
This commit is contained in:
@@ -51,8 +51,11 @@ func TestSendFleet(t *testing.T) {
|
||||
c.ShipGroup(1).StateInSpace = &game.InSpace{Origin: 2, Range: 1.23}
|
||||
|
||||
assert.ErrorContains(t,
|
||||
g.SendFleet("UnknownRace", fleetSending, 2),
|
||||
g.SendFleet(UnknownRace, fleetSending, 2),
|
||||
e.GenericErrorText(e.ErrInputUnknownRace))
|
||||
assert.ErrorContains(t,
|
||||
g.SendFleet(Race_Extinct.Name, fleetSending, 2),
|
||||
e.GenericErrorText(e.ErrRaceExinct))
|
||||
assert.ErrorContains(t,
|
||||
g.SendFleet(Race_0.Name, "UnknownFleet", 2),
|
||||
e.GenericErrorText(e.ErrInputEntityNotExists))
|
||||
|
||||
Reference in New Issue
Block a user