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

Method test_zerosMD

numpy/_core/tests/test_unicode.py:78–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 self.content_check(ua, ua[1], 4 * self.ulen * 2)
77
78 def test_zerosMD(self):
79 # Check creation of multi-dimensional objects
80 ua = np.zeros((2, 3, 4), dtype=f'U{self.ulen}')
81 self.content_check(ua, ua[0, 0, 0], 4 * self.ulen * 2 * 3 * 4)
82 self.content_check(ua, ua[-1, -1, -1], 4 * self.ulen * 2 * 3 * 4)
83
84
85class TestCreateZeros_1(CreateZeros):

Callers

nothing calls this directly

Calls 1

content_checkMethod · 0.95

Tested by

no test coverage detected