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

Method test_rstrip

numpy/_core/tests/test_strings.py:601–608  ·  view source on GitHub ↗
(self, a, chars, out, dt)

Source from the content-addressed store, hash-verified

599 (["ab", "ac", "aab", "abb"], "b", ["a", "ac", "aa", "a"]),
600 ])
601 def test_rstrip(self, a, chars, out, dt):
602 a = np.array(a, dtype=dt)
603 out = np.array(out, dtype=dt)
604 if chars is not None:
605 chars = np.array(chars, dtype=dt)
606 assert_array_equal(np.strings.rstrip(a, chars), out)
607 else:
608 assert_array_equal(np.strings.rstrip(a), out)
609
610 @pytest.mark.parametrize("a,chars,out", [
611 ("", None, ""),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
rstripMethod · 0.80

Tested by

no test coverage detected