Added more tests

This commit is contained in:
2024-10-29 20:05:42 -04:00
parent a66e8f1c08
commit f8ee1b3200

@@ -71,7 +71,7 @@ var reTests = []struct {
{`\w`, ";';';';';'qwe12", []matchIndex{{10, 11}, {11, 12}, {12, 13}, {13, 14}, {14, 15}}},
{`\s`, "a b c d", []matchIndex{{1, 2}, {3, 4}, {5, 6}, {6, 7}}},
{`\<`, "<HTML><body>", []matchIndex{{0, 1}, {6, 7}}},
{`\(.+\)`, "Not (paranthesized), (so) is (this) not", []matchIndex{{4, 18}, {21, 24}, {29, 34}}},
{`\(.+\)`, "Not (paranthesized), (so) is (this) not", []matchIndex{{4, 35}}},
}
func TestFindAllMatches(t *testing.T) {