MCPcopy Index your code
hub / github.com/numpy/numpy / test_on_ndarray

Method test_on_ndarray

numpy/ma/tests/test_core.py:5110–5117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

5108 assert_equal(test, control)
5109
5110 def test_on_ndarray(self):
5111 # Test functions on ndarrays
5112 a = np.array([1, 2, 3, 4])
5113 m = array(a, mask=False)
5114 test = anom(a)
5115 assert_equal(test, m.anom())
5116 test = reshape(a, (2, 2))
5117 assert_equal(test, m.reshape(2, 2))
5118
5119 def test_compress(self):
5120 # Test compress function on ndarray and masked array

Callers

nothing calls this directly

Calls 5

arrayFunction · 0.90
assert_equalFunction · 0.90
reshapeFunction · 0.90
anomMethod · 0.80
reshapeMethod · 0.80

Tested by

no test coverage detected