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

Method test_rsplit

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

Source from the content-addressed store, hash-verified

578 assert_array_equal(P, tgt)
579
580 def test_rsplit(self):
581 A = self.A().rsplit(b'3')
582 tgt = [[[b' abc '], [b'']],
583 [[b'12', b'45'], [b'MixedCase']],
584 [[b'12', b' \t ', b'45 \x00 '], [b'UPPER']]]
585 assert_(issubclass(A.dtype.type, np.object_))
586 assert_equal(A.tolist(), tgt)
587
588 def test_rstrip(self):
589 A, B = self.A(), self.B()

Callers

nothing calls this directly

Calls 5

AMethod · 0.95
assert_Function · 0.90
assert_equalFunction · 0.90
rsplitMethod · 0.80
tolistMethod · 0.45

Tested by

no test coverage detected