Skip to content

Commit 3772fdd

Browse files
authored
Merge pull request #446 from shizejin/fix-AS-algorithm-test
FIX: test `method` keyword of `RepeatedGame.equilibrium_payoffs()`.
2 parents da03ed3 + 480ea51 commit 3772fdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

quantecon/game_theory/tests/test_repeated_game.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def setUp(self):
3030
# Prisoner's dilemma
3131
bimatrix = [[(9, 9), (1, 10)],
3232
[(10, 1), (3, 3)]]
33-
vertices = np.array([[3. , 3.],
33+
vertices = np.array([[3. , 3. ],
3434
[9.75, 3. ],
3535
[9. , 9. ],
3636
[3. , 9.75]])
@@ -44,7 +44,8 @@ def test_abreu_sannikov(self):
4444
for d in self.game_dicts:
4545
rpg = RepeatedGame(d['sg'], d['delta'])
4646
for method in ('abreu_sannikov', 'AS'):
47-
hull = rpg.equilibrium_payoffs(options={'u_init': d['u']})
47+
hull = rpg.equilibrium_payoffs(method=method,
48+
options={'u_init': d['u']})
4849
assert_allclose(hull.points[hull.vertices], d['vertices'])
4950

5051
if __name__ == '__main__':

0 commit comments

Comments
 (0)