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

Method test_limits_arithmetic

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

Source from the content-addressed store, hash-verified

1100 assert_(isinstance(ma + na, MaskedArray))
1101
1102 def test_limits_arithmetic(self):
1103 tiny = np.finfo(float).tiny
1104 a = array([tiny, 1. / tiny, 0.])
1105 assert_equal(getmaskarray(a / 2), [0, 0, 0])
1106 assert_equal(getmaskarray(2 / a), [1, 0, 1])
1107
1108 def test_masked_singleton_arithmetic(self):
1109 # 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