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

Method test_mod

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

Source from the content-addressed store, hash-verified

1626 assert_equal(a.mask, [0, 0, 0])
1627
1628 def test_mod(self):
1629 # Tests mod
1630 x, y, _, _, _, xm, ym, _, _, _ = self._create_data()
1631 assert_equal(mod(x, y), mod(xm, ym))
1632 test = mod(ym, xm)
1633 assert_equal(test, np.mod(ym, xm))
1634 assert_equal(test.mask, mask_or(xm.mask, ym.mask))
1635 test = mod(xm, ym)
1636 assert_equal(test, np.mod(xm, ym))
1637 assert_equal(test.mask, mask_or(mask_or(xm.mask, ym.mask), (ym == 0)))
1638
1639 def test_TakeTransposeInnerOuter(self):
1640 # Test of take, transpose, inner, outer products

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
assert_equalFunction · 0.90
modFunction · 0.90
mask_orFunction · 0.90

Tested by

no test coverage detected