numpy.testing.assert_approx_equal()
numpy.testing.assert_approx_equal
-
numpy.testing.assert_approx_equal(actual, desired, significant=7, err_msg='', verbose=True)
[source] -
Raises an AssertionError if two items are not equal up to significant digits.
Note
It is recommended to use one of
assert_allclose
, 登录查看完整内容