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

Method test_default_fill_value

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

Source from the content-addressed store, hash-verified

2189 assert_equal(b['a'].fill_value, a.fill_value)
2190
2191 def test_default_fill_value(self):
2192 # check all calling conventions
2193 f1 = default_fill_value(1.)
2194 f2 = default_fill_value(np.array(1.))
2195 f3 = default_fill_value(np.array(1.).dtype)
2196 assert_equal(f1, f2)
2197 assert_equal(f1, f3)
2198
2199 def test_default_fill_value_structured(self):
2200 fields = array([(1, 1, 1)],

Callers

nothing calls this directly

Calls 2

default_fill_valueFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected