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

Method test_encode

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

Source from the content-addressed store, hash-verified

842 'aAaAaA')
843
844 def test_encode(self):
845 unicode = 'aAaAaA'
846 assert_equal(np.char.encode(unicode, encoding='cp037'),
847 b'\x81\xc1\x81\xc1\x81\xc1')
848
849 def test_expandtabs(self):
850 s = "\tone level of indentation\n\t\ttwo levels of indentation"

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
encodeMethod · 0.80

Tested by

no test coverage detected