diff options
author | notoraptor <stevenbocco@gmail.com> | 2018-10-25 11:20:56 -0400 |
---|---|---|
committer | notoraptor <stevenbocco@gmail.com> | 2019-04-18 11:17:43 -0400 |
commit | b609e150b811700f3a429f0dd653b96f1be511d9 (patch) | |
tree | a4bde13c445aa697a0d6d9ffa8a68ddb24d88f5a /diplomacy/tests | |
parent | bd854ba28d37d426a1822e97baf8dc8f8b44b993 (diff) |
Map - Modified norm() and compact()
- Added 'loc' arg to get_order_status
- Raising exception on set_orders for invalid power
- Deprecated game.distribute_orders
Diffstat (limited to 'diplomacy/tests')
-rw-r--r-- | diplomacy/tests/test_map.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diplomacy/tests/test_map.py b/diplomacy/tests/test_map.py index 507efae..6a12f71 100644 --- a/diplomacy/tests/test_map.py +++ b/diplomacy/tests/test_map.py @@ -55,8 +55,9 @@ def test_drop(): def test_compact(): """ Tests map.compact """ this_map = deepcopy(Map()) + # Power name at top of string is removed by Map.compact(). assert this_map.compact('England: Fleet Western Mediterranean -> Tyrrhenian Sea. (*bounce*)') \ - == ['ENGLAND', 'F', 'WES', 'TYS', '|'] + == ['F', 'WES', 'TYS', '|'] def test_norm_power(): """ Tests map.norm_power """ |