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

Method test_decode

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

Source from the content-addressed store, hash-verified

818 assert_(res.dtype.char == 'S')
819
820 def test_decode(self):
821 res = np.char.decode(np.array([], dtype='S'))
822 assert_array_equal(res, [])
823 assert_(res.dtype.char == 'U')
824
825 def test_decode_with_reshape(self):
826 res = np.char.decode(np.array([], dtype='S').reshape((1, 0, 1)))

Callers

nothing calls this directly

Calls 3

assert_array_equalFunction · 0.90
assert_Function · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected