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

Method test_fillvalue_as_arguments

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

Source from the content-addressed store, hash-verified

2558 assert_equal(f[-1], default_fill_value(1.))
2559
2560 def test_fillvalue_as_arguments(self):
2561 # Test adding a fill_value parameter to empty/ones/zeros
2562 a = empty(3, fill_value=999.)
2563 assert_equal(a.fill_value, 999.)
2564
2565 a = ones(3, fill_value=999., dtype=float)
2566 assert_equal(a.fill_value, 999.)
2567
2568 a = zeros(3, fill_value=0., dtype=complex)
2569 assert_equal(a.fill_value, 0.)
2570
2571 a = identity(3, fill_value=0., dtype=complex)
2572 assert_equal(a.fill_value, 0.)
2573
2574 def test_shape_argument(self):
2575 # Test that shape can be provides as an argument

Callers

nothing calls this directly

Calls 5

assert_equalFunction · 0.90
onesFunction · 0.90
identityFunction · 0.90
emptyFunction · 0.85
zerosFunction · 0.85

Tested by

no test coverage detected