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

Method test_isdecimal

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

Source from the content-addressed store, hash-verified

694 [False, False], [True, False], [False, False]])
695
696 def test_isdecimal(self):
697 A, B = self.A(), self.B()
698
699 def fail():
700 A.isdecimal()
701
702 assert_raises(TypeError, fail)
703 assert_(issubclass(B.isdecimal().dtype.type, np.bool))
704 assert_array_equal(B.isdecimal(), [
705 [False, False], [True, False], [False, False]])
706
707@ignore_charray_deprecation
708class TestOperations:

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
isdecimalMethod · 0.80

Tested by

no test coverage detected