MCPcopy
hub / github.com/numpy/numpy / test_lstrip

Method test_lstrip

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

Source from the content-addressed store, hash-verified

570 (["ba", "ac", "baa", "bba"], "b", ["a", "ac", "aa", "a"]),
571 ])
572 def test_lstrip(self, a, chars, out, dt):
573 a = np.array(a, dtype=dt)
574 out = np.array(out, dtype=dt)
575 if chars is not None:
576 chars = np.array(chars, dtype=dt)
577 assert_array_equal(np.strings.lstrip(a, chars), out)
578 else:
579 assert_array_equal(np.strings.lstrip(a), out)
580
581 @pytest.mark.parametrize("a,chars,out", [
582 ("", None, ""),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
lstripMethod · 0.80

Tested by

no test coverage detected