Drop tests with resetting match start inside lookaround

This seems to be of little use

Fixes #8353
This commit is contained in:
Fabian Homborg
2021-10-14 18:18:51 +02:00
parent 7ecb0b78e9
commit ec8844d834

View File

@@ -5822,11 +5822,6 @@ static void test_string() {
{{L"string", L"match", L"-r", L"(foo)\\Kbar", L"foobar", nullptr},
STATUS_CMD_OK,
L"bar\nfoo\n"},
{{L"string", L"match", L"-r", L"(?=ab\\K)", L"ab", nullptr}, STATUS_CMD_OK, L"\n"},
{{L"string", L"match", L"-r", L"(?=ab\\K)..(?=cd\\K)", L"abcd", nullptr},
STATUS_CMD_OK,
L"\n"},
{{L"string", L"replace", nullptr}, STATUS_INVALID_ARGS, L""},
{{L"string", L"replace", L"", nullptr}, STATUS_INVALID_ARGS, L""},
{{L"string", L"replace", L"", L"", nullptr}, STATUS_CMD_ERROR, L""},