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

Method test_isnumeric

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

Source from the content-addressed store, hash-verified

561 assert_array_equal(self.B.upper(), tgt)
562
563 def test_isnumeric(self):
564
565 def fail():
566 self.A.isnumeric()
567
568 assert_raises(TypeError, fail)
569 assert_(issubclass(self.B.isnumeric().dtype.type, np.bool_))
570 assert_array_equal(self.B.isnumeric(), [
571 [False, False], [True, False], [False, False]])
572
573 def test_isdecimal(self):
574

Callers

nothing calls this directly

Calls 4

assert_raisesFunction · 0.90
assert_Function · 0.90
assert_array_equalFunction · 0.90
isnumericMethod · 0.80

Tested by

no test coverage detected