Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ test_decode
Method
test_decode
numpy/core/tests/test_defchararray.py:349–351 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
347
assert_array_equal(C, tgt)
348
349
def
test_decode(self):
350
A = np.char.array([b
'\\u03a3'
])
351
assert_(A.decode(
'unicode-escape'
)[0] ==
'\u03a3'
)
352
353
def
test_encode(self):
354
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