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

Method test_array_rank2_eq

numpy/testing/tests/test_utils.py:42–47  ·  view source on GitHub ↗

Test two equal array of rank 2 are found equal.

(self)

Source from the content-addressed store, hash-verified

40 self._test_not_equal(a, b)
41
42 def test_array_rank2_eq(self):
43 """Test two equal array of rank 2 are found equal."""
44 a = np.array([[1, 2], [3, 4]])
45 b = np.array([[1, 2], [3, 4]])
46
47 self._test_equal(a, b)
48
49 def test_array_diffshape(self):
50 """Test two arrays with different shapes are found not equal."""

Callers

nothing calls this directly

Calls 1

_test_equalMethod · 0.95

Tested by

no test coverage detected