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

Method test_rpartition

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

Source from the content-addressed store, hash-verified

453 assert_array_equal(C, tgt)
454
455 def test_rpartition(self):
456 P = self.A.rpartition([b'3', b'M'])
457 tgt = [[(b'', b'', b' abc '), (b'', b'', b'')],
458 [(b'12', b'3', b'45'), (b'', b'M', b'ixedCase')],
459 [(b'123 \t ', b'3', b'45 \0 '), (b'', b'', b'UPPER')]]
460 assert_(issubclass(P.dtype.type, np.bytes_))
461 assert_array_equal(P, tgt)
462
463 def test_rsplit(self):
464 A = self.A.rsplit(b'3')

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
assert_array_equalFunction · 0.90
rpartitionMethod · 0.80

Tested by

no test coverage detected