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

Method test_partition

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

Source from the content-addressed store, hash-verified

488 assert_array_equal(B.lstrip(), tgt)
489
490 def test_partition(self):
491 A = self.A()
492 P = A.partition([b'3', b'M'])
493 tgt = [[(b' abc ', b'', b''), (b'', b'', b'')],
494 [(b'12', b'3', b'45'), (b'', b'M', b'ixedCase')],
495 [(b'12', b'3', b' \t 345 \0 '), (b'UPPER', b'', b'')]]
496 assert_(issubclass(P.dtype.type, np.bytes_))
497 assert_array_equal(P, tgt)
498
499 def test_replace(self):
500 A = self.A()

Callers

nothing calls this directly

Calls 4

AMethod · 0.95
assert_Function · 0.90
assert_array_equalFunction · 0.90
partitionMethod · 0.45

Tested by

no test coverage detected