From b609e150b811700f3a429f0dd653b96f1be511d9 Mon Sep 17 00:00:00 2001 From: notoraptor Date: Thu, 25 Oct 2018 11:20:56 -0400 Subject: Map - Modified norm() and compact() - Added 'loc' arg to get_order_status - Raising exception on set_orders for invalid power - Deprecated game.distribute_orders --- diplomacy/tests/test_map.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'diplomacy/tests') 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 """ -- cgit v1.2.3