MCPcopy Index your code
hub / github.com/numpy/numpy / test_equal_nan_default

Method test_equal_nan_default

numpy/testing/tests/test_utils.py:1324–1333  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1322 assert_raises(AssertionError, assert_allclose, a, b, equal_nan=False)
1323
1324 def test_equal_nan_default(self):
1325 # Make sure equal_nan default behavior remains unchanged. (All
1326 # of these functions use assert_array_compare under the hood.)
1327 # None of these should raise.
1328 a = np.array([np.nan])
1329 b = np.array([np.nan])
1330 assert_array_equal(a, b)
1331 assert_array_almost_equal(a, b)
1332 assert_array_less(a, b)
1333 assert_allclose(a, b)
1334
1335 def test_report_max_relative_error(self):
1336 a = np.array([0, 1])

Callers

nothing calls this directly

Calls 4

assert_array_equalFunction · 0.90
assert_array_lessFunction · 0.90
assert_allcloseFunction · 0.90

Tested by

no test coverage detected