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

Method test_array_rank1_noteq

numpy/testing/tests/test_utils.py:35–40  ·  view source on GitHub ↗

Test two different array of rank 1 are found not equal.

(self)

Source from the content-addressed store, hash-verified

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."""
37 a = np.array([1, 2])
38 b = np.array([2, 2])
39
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."""

Callers

nothing calls this directly

Calls 1

_test_not_equalMethod · 0.95

Tested by

no test coverage detected