diff options
author | Philip Paquette <pcpaquette@gmail.com> | 2019-03-05 16:01:53 -0500 |
---|---|---|
committer | Philip Paquette <pcpaquette@gmail.com> | 2019-04-18 11:25:05 -0400 |
commit | ab82a735cd57dd20236135447b774643faf7e1c1 (patch) | |
tree | 4ce08d7ff3f8f22861dbcfc701b424cfbf2bc649 /diplomacy/tests | |
parent | 88a5715f8c53852a6e231315d4aca361df2e6493 (diff) |
Refactored get_all_possible_orders for 2.5x speed improvement
- Returning all locations at once
- Removed 'loc' argument from method
- Map has pre-computed attribute dest_with_coats
Diffstat (limited to 'diplomacy/tests')
-rw-r--r-- | diplomacy/tests/test_game.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diplomacy/tests/test_game.py b/diplomacy/tests/test_game.py index 20994c8..cec1df7 100644 --- a/diplomacy/tests/test_game.py +++ b/diplomacy/tests/test_game.py @@ -518,7 +518,7 @@ def test_set_current_phase(): game.clear_cache() assert game.get_current_phase() == 'W1901A' assert game.phase_type == 'A' - assert 'A PAR B' in game.get_all_possible_orders('PAR') + assert 'A PAR B' in game.get_all_possible_orders()['PAR'] def test_process_game(): """ Tests - Process game """ |