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

Method test_nonzero

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

Source from the content-addressed store, hash-verified

774 assert_(amask.min(1)[0].mask)
775
776 def test_nonzero(self):
777 for t in "?bhilqpBHILQPfdgFDGO":
778 x = array([1, 0, 2, 0], mask=[0, 0, 1, 1])
779 assert_(eq(nonzero(x), [0]))
780
781
782class TestArrayMethods:

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected