Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: test method keyword of RepeatedGame.equilibrium_payoffs(). #446

Merged
merged 1 commit into from
Dec 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions quantecon/game_theory/tests/test_repeated_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]])
Expand All @@ -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__':
Expand Down