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

Method test_array_rank1_eq

numpy/testing/tests/test_utils.py:28–33  ·  view source on GitHub ↗

Test two equal array of rank 1 are found equal.

(self)

Source from the content-addressed store, hash-verified

26 self._assert_func(a, b)
27
28 def test_array_rank1_eq(self):
29 """Test two equal array of rank 1 are found equal."""
30 a = np.array([1, 2])
31 b = np.array([1, 2])
32
33 self._test_equal(a, b)
34
35 def test_array_rank1_noteq(self):
36 """Test two different array of rank 1 are found not equal."""

Callers

nothing calls this directly

Calls 1

_test_equalMethod · 0.95

Tested by

no test coverage detected