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

Method test_endswith

numpy/_core/tests/test_strings.py:550–553  ·  view source on GitHub ↗
(self, a, suffix, start, end, out, dt)

Source from the content-addressed store, hash-verified

548 [True, False]),
549 ])
550 def test_endswith(self, a, suffix, start, end, out, dt):
551 a = np.array(a, dtype=dt)
552 suffix = np.array(suffix, dtype=dt)
553 assert_array_equal(np.strings.endswith(a, suffix, start, end), out)
554
555 @pytest.mark.parametrize("a,chars,out", [
556 ("", None, ""),

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
endswithMethod · 0.80

Tested by

no test coverage detected