MCPcopy Create free account
hub / github.com/numpy/numpy / test_nan_array

Method test_nan_array

numpy/testing/tests/test_utils.py:123–131  ·  view source on GitHub ↗

Test arrays with nan values in them.

(self)

Source from the content-addressed store, hash-verified

121 foo(t)
122
123 def test_nan_array(self):
124 """Test arrays with nan values in them."""
125 a = np.array([1, 2, np.nan])
126 b = np.array([1, 2, np.nan])
127
128 self._test_equal(a, b)
129
130 c = np.array([1, 2, 3])
131 self._test_not_equal(c, b)
132
133 def test_string_arrays(self):
134 """Test two arrays with different shapes are found not equal."""

Callers

nothing calls this directly

Calls 2

_test_equalMethod · 0.80
_test_not_equalMethod · 0.80

Tested by

no test coverage detected