Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/numpy/numpy
/ test_decode
Method
test_decode
numpy/_core/tests/test_defchararray.py:415–417 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
413
assert_array_equal(C, tgt)
414
415
def
test_decode(self):
416
A = np.char.array([b
'\\u03a3'
])
417
assert_(A.decode(
'unicode-escape'
)[0] ==
'\u03a3'
)
418
419
def
test_encode(self):
420
B = self.B().encode(
'unicode_escape'
)
Callers
nothing calls this directly
Calls
2
assert_
Function · 0.90
decode
Method · 0.80
Tested by
no test coverage detected