MCPcopy
hub / github.com/numpy/numpy / test_shape_argument

Method test_shape_argument

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

Source from the content-addressed store, hash-verified

2572 assert_equal(a.fill_value, 0.)
2573
2574 def test_shape_argument(self):
2575 # Test that shape can be provides as an argument
2576 # GH issue 6106
2577 a = empty(shape=(3, ))
2578 assert_equal(a.shape, (3, ))
2579
2580 a = ones(shape=(3, ), dtype=float)
2581 assert_equal(a.shape, (3, ))
2582
2583 a = zeros(shape=(3, ), dtype=complex)
2584 assert_equal(a.shape, (3, ))
2585
2586 def test_fillvalue_in_view(self):
2587 # Test the behavior of fill_value in view

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected