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

Method test_testMaPut

numpy/ma/tests/test_old_ma.py:419–424  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

417 assert_(eq(x, [0, 1, 10, 40, 4]))
418
419 def test_testMaPut(self):
420 _, _, _, _, _, _, ym, _, zm, _, _ = self._create_data()
421 m = [1, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1]
422 i = np.nonzero(m)[0]
423 put(ym, i, zm)
424 assert_(all(take(ym, i, axis=0) == zm))
425
426 def test_testOddFeatures(self):
427 # Test of other odd features

Callers

nothing calls this directly

Calls 6

_create_dataMethod · 0.95
putFunction · 0.90
assert_Function · 0.90
takeFunction · 0.90
allFunction · 0.85
nonzeroMethod · 0.80

Tested by

no test coverage detected