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

Method test_limits_arithmetic

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

Source from the content-addressed store, hash-verified

1217 assert_(isinstance(ma + na, MaskedArray))
1218
1219 def test_limits_arithmetic(self):
1220 tiny = np.finfo(float).tiny
1221 a = array([tiny, 1. / tiny, 0.])
1222 assert_equal(getmaskarray(a / 2), [0, 0, 0])
1223 assert_equal(getmaskarray(2 / a), [1, 0, 1])
1224
1225 def test_masked_singleton_arithmetic(self):
1226 # Tests some scalar arithmetic on MaskedArrays.

Callers

nothing calls this directly

Calls 3

arrayFunction · 0.90
assert_equalFunction · 0.90
getmaskarrayFunction · 0.90

Tested by

no test coverage detected