(self, a, sub, start, end, out, dt)
| 473 | ("Ae¢☃€ 😊" * 100, "😊", 0, None, 100), |
| 474 | ]) |
| 475 | def test_count(self, a, sub, start, end, out, dt): |
| 476 | if "😊" in a and dt == "S": |
| 477 | pytest.skip("Bytes dtype does not support non-ascii input") |
| 478 | a = np.array(a, dtype=dt) |
| 479 | sub = np.array(sub, dtype=dt) |
| 480 | assert_array_equal(np.strings.count(a, sub, start, end), out) |
| 481 | |
| 482 | @pytest.mark.parametrize("a,prefix,start,end,out", [ |
| 483 | ("hello", "he", 0, None, True), |
nothing calls this directly
no test coverage detected