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

Method test_encode

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

Source from the content-addressed store, hash-verified

813
814class TestMethodsEmptyArray:
815 def test_encode(self):
816 res = np.char.encode(np.array([], dtype='U'))
817 assert_array_equal(res, [])
818 assert_(res.dtype.char == 'S')
819
820 def test_decode(self):
821 res = np.char.decode(np.array([], dtype='S'))

Callers

nothing calls this directly

Calls 3

assert_array_equalFunction · 0.90
assert_Function · 0.90
encodeMethod · 0.80

Tested by

no test coverage detected