empserver/tests
Markus Armbruster 520cfea05d navigate march: Fix "same mob type" and "not on sale" checks
Unlike the other "may move" conditions, "same mobility type
(MOB_MARCH, MOB_RAIL) as leader" and "not on sale" are only checked
when collecting ships and land units.

The former breaks when a deity unwisely edits a land unit's type while
it is being marched.  Messed up when the check was added in commit
36e41e5 (v4.3.7).  However, editing has become possible only recently,
in commit 6b0b6f1.

The latter would break if a ship could be put on the market while it
is being navigated, but that's not possible, because only the owner
can navigate (see also commit 8c502d4), and only the owner can sell.
Same for land units.  Messed up in 4.0.9.  Clean it up anyway.  Bonus:
nicer error message, even spelled correctly.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
2015-03-02 08:20:47 +01:00
..
actofgod sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
bridgefall sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
build sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
empdump xundump: Polish error messages 2015-02-01 16:53:00 +01:00
fairland sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
files sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
fire sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
info tests/info: New; checks info and code agree on commands 2014-01-06 20:50:06 +01:00
navi-march navigate march: Fix "same mob type" and "not on sale" checks 2015-03-02 08:20:47 +01:00
retreat torpedo: Fix mobility cost of retreat after hit 2015-02-28 16:21:35 +01:00
smoke sail: Remove option SAIL 2015-02-28 16:11:28 +01:00
actofgod-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
bridgefall-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
build-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
empdump-test tests/empdump: New; exercising the empdump utility 2015-02-01 16:52:59 +01:00
fairland-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
files-test tests/files tests/fairland: Check stderr and exit status 2015-02-01 16:52:59 +01:00
fire-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
info-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
navi-march-test navigate: Require all ships to start in the same sector 2015-02-28 16:13:14 +01:00
normalize.pl tests: Fix normalization of nat_timeused in prompt in journal 2014-01-19 10:09:16 +01:00
retreat-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
smoke-test tests: Define and use some abbreviations 2015-02-01 16:52:59 +01:00
test-common.sh tests: New helper customize 2015-02-01 16:53:00 +01:00