MCPcopy Index your code
hub / github.com/numpy/numpy / test_it

Method test_it

numpy/_core/tests/test_defchararray.py:159–162  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

157@ignore_charray_deprecation
158class TestChar:
159 def test_it(self):
160 A = np.array('abc1', dtype='c').view(np.char.chararray)
161 assert_equal(A.shape, (4,))
162 assert_equal(A.upper()[:2].tobytes(), b'AB')
163
164@ignore_charray_deprecation
165class TestComparisons:

Callers

nothing calls this directly

Calls 4

assert_equalFunction · 0.90
upperMethod · 0.80
viewMethod · 0.45
tobytesMethod · 0.45

Tested by

no test coverage detected