tests/fire: Cover firing with foreign assets

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2015-02-14 11:14:11 +01:00
parent 165fbed512
commit ebb36f8dc3
4 changed files with 28 additions and 1 deletions

View file

@ -8,6 +8,9 @@ comm * ?shell>0
|| fort not firing
| nonexistant sector
fire se 1,0 6,0
| foreign sector
fire se 2,2 6,0
__cmd added 1 1 0
| 100% highway
fire se -4,0 6,0
| 4% fort

View file

@ -8,6 +8,9 @@ carg * ?shell>0
|| ship not firing
| nonexistant ship
fire sh 666 6,0
| foreign ship
fire sh 11 6,0
__cmd added 1 1 0
| 100% cs
fire sh 9 6,0
| 59% bb

View file

@ -8,7 +8,10 @@ lcarg * ?shell>0
|| land not firing
| nonexistant land
fire la 666 6,0
| 100% tra
| foreign land
fire la 13 6,0
__cmd added 1 1 0
| 100% sup
fire la 9 6,0
| 39% hat
fire la 1 6,0

View file

@ -47,6 +47,12 @@
Play#1 input fire se 1,0 6,0
Play#1 command fire
Play#1 output Play#1 6 0 639
Play#1 input fire se 2,2 6,0
Play#1 command fire
Play#1 output Play#1 6 0 638
Play#1 input __cmd added 1 1 0
Play#1 command __cmd
Play#1 output Play#1 6 0 639
Play#1 input fire se -4,0 6,0
Play#1 command fire
Play#1 output Play#1 6 0 638
@ -492,6 +498,12 @@
Play#1 input fire sh 666 6,0
Play#1 command fire
Play#1 output Play#1 6 0 594
Play#1 input fire sh 11 6,0
Play#1 command fire
Play#1 output Play#1 6 0 593
Play#1 input __cmd added 1 1 0
Play#1 command __cmd
Play#1 output Play#1 6 0 594
Play#1 input fire sh 9 6,0
Play#1 command fire
Play#1 output Play#1 1 Ships 9 cannot fire guns!
@ -1001,6 +1013,12 @@
Play#1 input fire la 666 6,0
Play#1 command fire
Play#1 output Play#1 6 0 537
Play#1 input fire la 13 6,0
Play#1 command fire
Play#1 output Play#1 6 0 536
Play#1 input __cmd added 1 1 0
Play#1 command __cmd
Play#1 output Play#1 6 0 537
Play#1 input fire la 9 6,0
Play#1 command fire
Play#1 output Play#1 1 Unit 9 cannot fire!