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

Method test_zeros0D

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

Source from the content-addressed store, hash-verified

65 assert_(buffer_length(ua_scalar) == 0)
66
67 def test_zeros0D(self):
68 # Check creation of 0-dimensional objects
69 ua = np.zeros((), dtype=f'U{self.ulen}')
70 self.content_check(ua, ua[()], 4 * self.ulen)
71
72 def test_zerosSD(self):
73 # Check creation of single-dimensional objects

Callers

nothing calls this directly

Calls 1

content_checkMethod · 0.95

Tested by

no test coverage detected