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

Method test_isalpha

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

Source from the content-addressed store, hash-verified

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_))
262 assert_array_equal(self.A.isalpha(), [[False, False], [False, True], [False, True]])
263
264 def test_isdigit(self):
265 assert_(issubclass(self.A.isdigit().dtype.type, np.bool_))

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
assert_array_equalFunction · 0.90
isalphaMethod · 0.80

Tested by

no test coverage detected