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

Method test_isdecimal

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

Source from the content-addressed store, hash-verified

571 [False, False], [True, False], [False, False]])
572
573 def test_isdecimal(self):
574
575 def fail():
576 self.A.isdecimal()
577
578 assert_raises(TypeError, fail)
579 assert_(issubclass(self.B.isdecimal().dtype.type, np.bool_))
580 assert_array_equal(self.B.isdecimal(), [
581 [False, False], [True, False], [False, False]])
582
583
584class TestOperations:

Callers

nothing calls this directly

Calls 4

assert_raisesFunction · 0.90
assert_Function · 0.90
assert_array_equalFunction · 0.90
isdecimalMethod · 0.80

Tested by

no test coverage detected