15 lines
381 B
Python
15 lines
381 B
Python
import pytest
|
|
from solution import Solution
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"s, p, removable, expected",
|
|
[
|
|
("abcacb", "ab", [3, 1, 0], 2),
|
|
("abcbddddd", "abcd", [3, 2, 1, 4, 5, 6], 1),
|
|
("abcab", "abc", [0, 1, 2, 3, 4], 0),
|
|
],
|
|
)
|
|
def test_maximum_removals(s, p, removable, expected):
|
|
assert Solution().maximumRemovals(s, p, removable) == expected
|