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

Method test_decode

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

Source from the content-addressed store, hash-verified

837 assert_array_equal(np.char.mod(b"123%s", A), tgt)
838
839 def test_decode(self):
840 bytestring = b'\x81\xc1\x81\xc1\x81\xc1'
841 assert_equal(np.char.decode(bytestring, encoding='cp037'),
842 'aAaAaA')
843
844 def test_encode(self):
845 unicode = 'aAaAaA'

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected