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

Method test_zerosSD

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

Source from the content-addressed store, hash-verified

70 self.content_check(ua, ua[()], 4 * self.ulen)
71
72 def test_zerosSD(self):
73 # Check creation of single-dimensional objects
74 ua = np.zeros((2,), dtype=f'U{self.ulen}')
75 self.content_check(ua, ua[0], 4 * self.ulen * 2)
76 self.content_check(ua, ua[1], 4 * self.ulen * 2)
77
78 def test_zerosMD(self):
79 # Check creation of multi-dimensional objects

Callers

nothing calls this directly

Calls 1

content_checkMethod · 0.95

Tested by

no test coverage detected