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

Method test_isnumeric

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

Source from the content-addressed store, hash-verified

683 assert_array_equal(B.upper(), tgt)
684
685 def test_isnumeric(self):
686 A, B = self.A(), self.B()
687
688 def fail():
689 A.isnumeric()
690
691 assert_raises(TypeError, fail)
692 assert_(issubclass(B.isnumeric().dtype.type, np.bool))
693 assert_array_equal(B.isnumeric(), [
694 [False, False], [True, False], [False, False]])
695
696 def test_isdecimal(self):
697 A, B = self.A(), self.B()

Callers

nothing calls this directly

Calls 6

AMethod · 0.95
BMethod · 0.95
assert_raisesFunction · 0.90
assert_Function · 0.90
assert_array_equalFunction · 0.90
isnumericMethod · 0.80

Tested by

no test coverage detected