Skip to content

Commit

Permalink
Merge pull request #570 from QuantEcon/fix_test_covariance_game
Browse files Browse the repository at this point in the history
TEST: covariance_game: Increase atol value
  • Loading branch information
oyamad committed Feb 2, 2021
2 parents 0b78e30 + a0b2a35 commit e5ccec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quantecon/game_theory/tests/test_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def test_covariance_game():
rho = 1
g = covariance_game(nums_actions, rho=rho)
for a in np.ndindex(*nums_actions):
payoff_profile = g.payoff_profile_array[a]
for i in range(N-1):
payoff_profile = g.payoff_profile_array[a]
assert_allclose(payoff_profile[i], payoff_profile[-1], atol=1e-8)
assert_allclose(payoff_profile[i], payoff_profile[-1], atol=1e-7)

rho = -1 / (N - 1)
g = covariance_game(nums_actions, rho=rho)
Expand Down

0 comments on commit e5ccec1

Please sign in to comment.