Skip to content
Snippets Groups Projects
Commit d54764ea authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Testsuite [Stdio.Buffer]: Removed some search() tests.

These variants of search() are only valid in Pike 8.1 and later.

Fixes several testsuite failures.
parent f8e81772
Branches
Tags
No related merge requests found
......@@ -899,9 +899,8 @@ dnl search
test_any_equal([[
Stdio.Buffer b = Stdio.Buffer("foobar");
return ({ search(b, 'f'), search(b, 'o'), search(b, 'x'), search(b, 0),
search(b, -1), search(b, 'o', 1), search(b, 'o', 2),
search(b, 'o', 0, 0), search(b, 'o', 0, 3) });
]], ({ 0, 1, -1, -1, -1, 1, 2, -1, 1 }))
search(b, -1), search(b, 'o', 1), search(b, 'o', 2) });
]], ({ 0, 1, -1, -1, -1, 1, 2, }))
test_any([[
Stdio.Buffer b = Stdio.Buffer("hejhopp");
......@@ -928,9 +927,5 @@ test_any([[
Stdio.Buffer b = Stdio.Buffer("hejhopphej");
return search(b, "he", 1);
]], 7)
test_any([[
Stdio.Buffer b = Stdio.Buffer("hejhopp");
return search(b, "ho", 0, 3);
]], -1)
END_MARKER
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment