MCPcopy Create free account
hub / github.com/numpy/numpy / test_isalnum

Method test_isalnum

numpy/core/tests/test_defchararray.py:256–258  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

254 assert_(issubclass(np.char.index('abcba', 'b').dtype.type, np.integer))
255
256 def test_isalnum(self):
257 assert_(issubclass(self.A.isalnum().dtype.type, np.bool_))
258 assert_array_equal(self.A.isalnum(), [[False, False], [True, True], [False, True]])
259
260 def test_isalpha(self):
261 assert_(issubclass(self.A.isalpha().dtype.type, np.bool_))

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
assert_array_equalFunction · 0.90
isalnumMethod · 0.80

Tested by

no test coverage detected