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

Method test_isdigit

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

Source from the content-addressed store, hash-verified

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_))
266 assert_array_equal(self.A.isdigit(), [[False, False], [True, False], [False, False]])
267
268 def test_islower(self):
269 assert_(issubclass(self.A.islower().dtype.type, np.bool_))

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
assert_array_equalFunction · 0.90
isdigitMethod · 0.80

Tested by

no test coverage detected