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

Method test_string_arrays

numpy/testing/tests/test_utils.py:133–142  ·  view source on GitHub ↗

Test two arrays with different shapes are found not equal.

(self)

Source from the content-addressed store, hash-verified

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."""
135 a = np.array(['floupi', 'floupa'])
136 b = np.array(['floupi', 'floupa'])
137
138 self._test_equal(a, b)
139
140 c = np.array(['floupipi', 'floupa'])
141
142 self._test_not_equal(c, b)
143
144 def test_recarrays(self):
145 """Test record arrays."""

Callers

nothing calls this directly

Calls 2

_test_equalMethod · 0.80
_test_not_equalMethod · 0.80

Tested by

no test coverage detected