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

Method test_mod

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

Source from the content-addressed store, hash-verified

1466 assert_equal(a.mask, [0, 0, 0])
1467
1468 def test_mod(self):
1469 # Tests mod
1470 (x, y, a10, m1, m2, xm, ym, z, zm, xf) = self.d
1471 assert_equal(mod(x, y), mod(xm, ym))
1472 test = mod(ym, xm)
1473 assert_equal(test, np.mod(ym, xm))
1474 assert_equal(test.mask, mask_or(xm.mask, ym.mask))
1475 test = mod(xm, ym)
1476 assert_equal(test, np.mod(xm, ym))
1477 assert_equal(test.mask, mask_or(mask_or(xm.mask, ym.mask), (ym == 0)))
1478
1479 def test_TakeTransposeInnerOuter(self):
1480 # Test of take, transpose, inner, outer products

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
modFunction · 0.90
mask_orFunction · 0.90

Tested by

no test coverage detected