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

Method test_testMinMax

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

Source from the content-addressed store, hash-verified

175 assert_(eq([1, 2], count(ott, 0)))
176
177 def test_testMinMax(self):
178 # Test minimum and maximum.
179 (x, y, a10, m1, m2, xm, ym, z, zm, xf, s) = self.d
180 xr = np.ravel(x) # max doesn't work if shaped
181 xmr = ravel(xm)
182
183 # true because of careful selection of data
184 assert_(eq(max(xr), maximum.reduce(xmr)))
185 assert_(eq(min(xr), minimum.reduce(xmr)))
186
187 def test_testAddSumProd(self):
188 # Test add, sum, product.

Callers

nothing calls this directly

Calls 7

assert_Function · 0.90
ravelFunction · 0.85
eqFunction · 0.85
maxFunction · 0.50
minFunction · 0.50
ravelMethod · 0.45
reduceMethod · 0.45

Tested by

no test coverage detected