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

Method test_array_diffshape

numpy/testing/tests/test_utils.py:49–54  ·  view source on GitHub ↗

Test two arrays with different shapes are found not equal.

(self)

Source from the content-addressed store, hash-verified

47 self._test_equal(a, b)
48
49 def test_array_diffshape(self):
50 """Test two arrays with different shapes are found not equal."""
51 a = np.array([1, 2])
52 b = np.array([[1, 2], [1, 2]])
53
54 self._test_not_equal(a, b)
55
56 def test_objarray(self):
57 """Test object arrays."""

Callers

nothing calls this directly

Calls 1

_test_not_equalMethod · 0.95

Tested by

no test coverage detected