From 480ea5173cbb754742f5b5579b8fc5493e7249f5 Mon Sep 17 00:00:00 2001 From: Zejin Shi <> Date: Mon, 26 Nov 2018 21:12:58 -0700 Subject: [PATCH] FIX: test `method` keyword of `RepeatedGame.equilibrium_payoffs()`. --- quantecon/game_theory/tests/test_repeated_game.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/quantecon/game_theory/tests/test_repeated_game.py b/quantecon/game_theory/tests/test_repeated_game.py index 34abef8d0..508a189b5 100644 --- a/quantecon/game_theory/tests/test_repeated_game.py +++ b/quantecon/game_theory/tests/test_repeated_game.py @@ -30,7 +30,7 @@ def setUp(self): # Prisoner's dilemma bimatrix = [[(9, 9), (1, 10)], [(10, 1), (3, 3)]] - vertices = np.array([[3. , 3.], + vertices = np.array([[3. , 3. ], [9.75, 3. ], [9. , 9. ], [3. , 9.75]]) @@ -44,7 +44,8 @@ def test_abreu_sannikov(self): for d in self.game_dicts: rpg = RepeatedGame(d['sg'], d['delta']) for method in ('abreu_sannikov', 'AS'): - hull = rpg.equilibrium_payoffs(options={'u_init': d['u']}) + hull = rpg.equilibrium_payoffs(method=method, + options={'u_init': d['u']}) assert_allclose(hull.points[hull.vertices], d['vertices']) if __name__ == '__main__':