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

Method test_isalnum

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

Source from the content-addressed store, hash-verified

299 assert_(issubclass(np.char.index('abcba', 'b').dtype.type, np.integer))
300
301 def test_isalnum(self):
302 A = self.A()
303 assert_(issubclass(A.isalnum().dtype.type, np.bool))
304 assert_array_equal(A.isalnum(), [[False, False], [True, True], [False, True]])
305
306 def test_isalpha(self):
307 A = self.A()

Callers

nothing calls this directly

Calls 4

AMethod · 0.95
assert_Function · 0.90
assert_array_equalFunction · 0.90
isalnumMethod · 0.80

Tested by

no test coverage detected