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

Method test_rsplit

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

Source from the content-addressed store, hash-verified

461 assert_array_equal(P, tgt)
462
463 def test_rsplit(self):
464 A = self.A.rsplit(b'3')
465 tgt = [[[b' abc '], [b'']],
466 [[b'12', b'45'], [b'MixedCase']],
467 [[b'12', b' \t ', b'45 \x00 '], [b'UPPER']]]
468 assert_(issubclass(A.dtype.type, np.object_))
469 assert_equal(A.tolist(), tgt)
470
471 def test_rstrip(self):
472 assert_(issubclass(self.A.rstrip().dtype.type, np.bytes_))

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected