Added test

This commit is contained in:
2024-10-27 14:56:07 -04:00
parent 4781b87b90
commit b92912f7e4

View File

@@ -24,6 +24,7 @@ var reTests = []struct {
{"(abc)*|(def)*", "abcdef", []matchIndex{{0, 3}, {3, 3}, {3, 6}, {6, 6}}},
{"b*a*a", "bba", []matchIndex{{0, 3}}},
{"(ab)+", "abcabddd", []matchIndex{{0, 2}, {3, 5}}},
{"a(b(c|d)*)*", "abccbd", []matchIndex{{0, 6}}},
}
func TestFindAllMatches(t *testing.T) {