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

Method test_nonzero

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

Source from the content-addressed store, hash-verified

837 assert_(amask.min(1)[0].mask)
838
839 def test_nonzero(self):
840 for t in "?bhilqpBHILQPfdgFDGO":
841 x = array([1, 0, 2, 0], mask=[0, 0, 1, 1])
842 assert_(eq(nonzero(x), [0]))
843
844
845class TestArrayMethods:

Callers

nothing calls this directly

Calls 4

arrayFunction · 0.90
assert_Function · 0.90
eqFunction · 0.85
nonzeroFunction · 0.85

Tested by

no test coverage detected