wesnoth/data/test/maps
Steve Cotton 06dd9a140c Add [find_path] option "nearest_by", and simple_find_path test
Adding this is issue 2 of #4177, changing the behavior when [find_path]
is given a SLF which matches multiple hexes.

The map and tests here should be easy enough for manually editing them. It
duplicates some of the functionality of the existing characterize_pathfinding
tests, however those tests need their expected values to be calculated and
can't be changed by hand.

'''nearest_by''': {DevFeature1.15|2} possible values "movement_cost"
(default), "steps", "hexes". If the [destination] SLF matches multiple hexes,
the one that would need the least movement points to reach may not be the one
that's closest as measured by '''hexes''', or closest as measured by steps,
from the starting point.

Behavior in 1.14 depended on which hex was checked first.
2019-09-11 11:17:56 +02:00
..
generic_unit_test.map put generic unit test map in its own file 2014-05-16 17:05:31 -04:00
move_skip_sighted.map Add unit tests for check victory function 2014-05-22 17:21:53 -04:00
pathfind_1.cfg WML Unit Tests: Fix issues found by the schema validator 2018-10-23 22:49:45 -04:00
sighted_events.map add sighted events unit tests 2014-05-16 18:09:52 -04:00
simple_find_path.map Add [find_path] option "nearest_by", and simple_find_path test 2019-09-11 11:17:56 +02:00
test_grunt_tod_damage.map move test_grunt_tod_damage map to a map file 2014-05-16 17:11:27 -04:00
test_movetype.map Add unit tests for movement and vision costs 2019-07-22 17:18:20 +02:00