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

Method test_it

numpy/core/tests/test_defchararray.py:154–156  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

152 self.A = np.array('abc1', dtype='c').view(np.chararray)
153
154 def test_it(self):
155 assert_equal(self.A.shape, (4,))
156 assert_equal(self.A.upper()[:2].tobytes(), b'AB')
157
158class TestComparisons:
159 def setup_method(self):

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
upperMethod · 0.80
tobytesMethod · 0.45

Tested by

no test coverage detected