From 81710a935ce28368e0cfb023f26a283534131b5b Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 14 Feb 2015 11:15:23 +0100 Subject: [PATCH] tests/fire: Cover firing at unused / sunk ships Signed-off-by: Markus Armbruster --- tests/fire/01-sector-1 | 2 ++ tests/fire/03-ship-1 | 2 ++ tests/fire/05-land-1 | 2 ++ tests/fire/journal.log | 24 ++++++++++++++++++++++++ 4 files changed, 30 insertions(+) diff --git a/tests/fire/01-sector-1 b/tests/fire/01-sector-1 index a85cc464c..0354f7696 100644 --- a/tests/fire/01-sector-1 +++ b/tests/fire/01-sector-1 @@ -22,6 +22,8 @@ fire se 0,0 0,0 fire se 0,0 1,0 | at ship that doesn't exist fire se 0,0 666 +fire se 0,0 19 +__cmd added 1 1 0 | at valid target, but with insufficient mil move m 0,0 1 nh fire se 0,0 6,0 diff --git a/tests/fire/03-ship-1 b/tests/fire/03-ship-1 index 095af0c87..cc08180a1 100644 --- a/tests/fire/03-ship-1 +++ b/tests/fire/03-ship-1 @@ -21,6 +21,8 @@ fire sh 2 2 fire sh 2 1,0 | at ship that doesn't exist fire sh 2 666 +fire sh 2 19 +__cmd added 1 1 0 | at valid target, but no mil unload m 2 13 fire sh 2 6,0 diff --git a/tests/fire/05-land-1 b/tests/fire/05-land-1 index 17c995335..f301c8ced 100644 --- a/tests/fire/05-land-1 +++ b/tests/fire/05-land-1 @@ -21,6 +21,8 @@ fire la 2 3,1 fire la 2 1,0 | at ship that doesn't exist fire la 2 666 +fire la 2 19 +__cmd added 1 1 0 | at valid target, but no mil lunload m 2 10 fire la 2 6,0 diff --git a/tests/fire/journal.log b/tests/fire/journal.log index 225171b93..fa05d4555 100644 --- a/tests/fire/journal.log +++ b/tests/fire/journal.log @@ -75,6 +75,14 @@ Play#1 output Play#1 1 Sector 0,0 ready to fire Play#1 output Play#1 1 No such ship exists! Play#1 output Play#1 6 0 634 + Play#1 input fire se 0,0 19 + Play#1 command fire + Play#1 output Play#1 1 Sector 0,0 ready to fire + Play#1 output Play#1 1 No such ship exists! + Play#1 output Play#1 6 0 633 + Play#1 input __cmd added 1 1 0 + Play#1 command __cmd + Play#1 output Play#1 6 0 634 Play#1 input move m 0,0 1 nh Play#1 command move Play#1 output Play#1 1 No mobility used @@ -527,6 +535,14 @@ Play#1 output Play#1 1 bb battleship (#2) ready to fire Play#1 output Play#1 1 No such ship exists! Play#1 output Play#1 6 0 589 + Play#1 input fire sh 2 19 + Play#1 command fire + Play#1 output Play#1 1 bb battleship (#2) ready to fire + Play#1 output Play#1 1 No such ship exists! + Play#1 output Play#1 6 0 588 + Play#1 input __cmd added 1 1 0 + Play#1 command __cmd + Play#1 output Play#1 6 0 589 Play#1 input unload m 2 13 Play#1 command unload Play#1 output Play#1 1 13 military unloaded from bb battleship (#2) at 3,1 @@ -1042,6 +1058,14 @@ Play#1 output Play#1 1 hat hvy artillery #2 ready to fire Play#1 output Play#1 1 No such ship exists! Play#1 output Play#1 6 0 532 + Play#1 input fire la 2 19 + Play#1 command fire + Play#1 output Play#1 1 hat hvy artillery #2 ready to fire + Play#1 output Play#1 1 No such ship exists! + Play#1 output Play#1 6 0 531 + Play#1 input __cmd added 1 1 0 + Play#1 command __cmd + Play#1 output Play#1 6 0 532 Play#1 input lunload m 2 10 Play#1 command lunload Play#1 output Play#1 1 10 military unloaded from hat hvy artillery #2 at 3,1 -- 2.43.0