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

Method test_rpartition

numpy/_core/tests/test_strings.py:972–982  ·  view source on GitHub ↗
(self, buf, sep, res1, res2, res3, dt)

Source from the content-addressed store, hash-verified

970 ("mississippi", "w", "", "", "mississippi"),
971 ])
972 def test_rpartition(self, buf, sep, res1, res2, res3, dt):
973 buf = np.array(buf, dtype=dt)
974 sep = np.array(sep, dtype=dt)
975 res1 = np.array(res1, dtype=dt)
976 res2 = np.array(res2, dtype=dt)
977 res3 = np.array(res3, dtype=dt)
978 act1, act2, act3 = np.strings.rpartition(buf, sep)
979 assert_array_equal(act1, res1)
980 assert_array_equal(act2, res2)
981 assert_array_equal(act3, res3)
982 assert_array_equal(act1 + act2 + act3, buf)
983
984 @pytest.mark.parametrize("args", [
985 (None,),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rpartitionMethod · 0.80

Tested by

no test coverage detected