17 lines
498 B
Python
17 lines
498 B
Python
# pylint:disable=missing-function-docstring
|
|
|
|
import pytest
|
|
|
|
from res.rerun_args import return_list_strings
|
|
|
|
|
|
@pytest.mark.parametrize(
|
|
"string, target",
|
|
[("0002", ["0002"]), ("1:5", ["0001", "0002", "0003", "0004"]), ("2", ["0002"]),
|
|
("1,5:7", ["0001", "0005", "0006"]), ("002*,1:3", ["002*", "0001", "0002"]),
|
|
("0001, 0003", ["0001", "0003"]), ("000*", ["000*"])]
|
|
)
|
|
def test_return_list_strings(string, target):
|
|
res = return_list_strings(string)
|
|
assert res == target
|