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

Method test_functionality

numpy/lib/tests/test_shape_base.py:310–316  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

308
309class TestExpandDims:
310 def test_functionality(self):
311 s = (2, 3, 4, 5)
312 a = np.empty(s)
313 for axis in range(-5, 4):
314 b = expand_dims(a, axis)
315 assert_(b.shape[axis] == 1)
316 assert_(np.squeeze(b).shape == s)
317
318 def test_axis_tuple(self):
319 a = np.empty((3, 3, 3))

Callers

nothing calls this directly

Calls 3

expand_dimsFunction · 0.90
assert_Function · 0.90
squeezeMethod · 0.45

Tested by

no test coverage detected