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

Method test_isupper

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

Source from the content-addressed store, hash-verified

278 assert_array_equal(self.A.istitle(), [[False, False], [False, False], [False, False]])
279
280 def test_isupper(self):
281 assert_(issubclass(self.A.isupper().dtype.type, np.bool_))
282 assert_array_equal(self.A.isupper(), [[False, False], [False, False], [False, True]])
283
284 def test_rfind(self):
285 assert_(issubclass(self.A.rfind('a').dtype.type, np.integer))

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
assert_array_equalFunction · 0.90
isupperMethod · 0.80

Tested by

no test coverage detected