Skip to content

Commit

Permalink
Fix test_compute_fp
Browse files Browse the repository at this point in the history
  • Loading branch information
oyamad committed Nov 17, 2016
1 parent e35b46f commit cf4ceab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quantecon/tests/test_compute_fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,16 @@ def test_imitation_game_method(self):

for mu in [self.mu_1, self.mu_2]:
for i in self.unit_inverval:
fp_computed = \
compute_fixed_point(self.T, i, mu=mu, **self.kwargs)
fp_computed = compute_fixed_point(self.T, i, method=method,
mu=mu, **self.kwargs)
self.assertTrue(
abs(self.T(fp_computed, mu=mu) - fp_computed) <= error_tol
)

# numpy array input
i = np.asarray(self.unit_inverval)
fp_computed = compute_fixed_point(self.T, i, mu=mu, **self.kwargs)
fp_computed = compute_fixed_point(self.T, i, method=method, mu=mu,
**self.kwargs)
self.assertTrue(
abs(self.T(fp_computed, mu=mu) - fp_computed).max() <=
error_tol
Expand Down

0 comments on commit cf4ceab

Please sign in to comment.