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

Method check_array

numpy/core/tests/test_multiarray.py:8983–8988  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

8981 assert_(sys.getsizeof(x) > 0)
8982
8983 def check_array(self, dtype):
8984 elem_size = dtype(0).itemsize
8985
8986 for length in [10, 50, 100, 500]:
8987 x = np.arange(length, dtype=dtype)
8988 assert_(sys.getsizeof(x) > length * elem_size)
8989
8990 def test_array_int32(self):
8991 self.check_array(np.int32)

Callers 4

test_array_int32Method · 0.95
test_array_int64Method · 0.95
test_array_float32Method · 0.95
test_array_float64Method · 0.95

Calls 2

assert_Function · 0.90
dtypeFunction · 0.85

Tested by

no test coverage detected