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

Method test_rpartition

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

Source from the content-addressed store, hash-verified

569 assert_array_equal(C, tgt)
570
571 def test_rpartition(self):
572 A = self.A()
573 P = A.rpartition([b'3', b'M'])
574 tgt = [[(b'', b'', b' abc '), (b'', b'', b'')],
575 [(b'12', b'3', b'45'), (b'', b'M', b'ixedCase')],
576 [(b'123 \t ', b'3', b'45 \0 '), (b'', b'', b'UPPER')]]
577 assert_(issubclass(P.dtype.type, np.bytes_))
578 assert_array_equal(P, tgt)
579
580 def test_rsplit(self):
581 A = self.A().rsplit(b'3')

Callers

nothing calls this directly

Calls 4

AMethod · 0.95
assert_Function · 0.90
assert_array_equalFunction · 0.90
rpartitionMethod · 0.80

Tested by

no test coverage detected