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

Method test_size

numpy/core/tests/test_numeric.py:225–229  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

223 assert_equal(out, 3)
224
225 def test_size(self):
226 A = [[1, 2, 3], [4, 5, 6]]
227 assert_(np.size(A) == 6)
228 assert_(np.size(A, 0) == 2)
229 assert_(np.size(A, 1) == 3)
230
231 def test_squeeze(self):
232 A = [[[1, 1, 1], [2, 2, 2], [3, 3, 3]]]

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
sizeMethod · 0.80

Tested by

no test coverage detected