Added test case

master
Aadhavan Srinivasan 3 months ago
parent 761a5ad052
commit 956bdbdcb6

@ -21,8 +21,9 @@ var reTests = []struct {
{"ab*", "abb", []matchIndex{{0, 3}}},
{"(abc)*", "abcabcabc", []matchIndex{{0, 9}}},
{"((abc)|(def))*", "abcdef", []matchIndex{{0, 6}}},
{"(abc)*|(def)*", "abcdef", []matchIndex{{0, 3}, {3, 6}}},
{"(abc)*|(def)*", "abcdef", []matchIndex{{0, 3}, {3, 3}, {3, 6}, {6, 6}}},
{"b*a*a", "bba", []matchIndex{{0, 3}}},
{"(ab)+", "ababddd", []matchIndex{{0, 2}, {2, 4}}},
}
func TestFindAllMatches(t *testing.T) {

Loading…
Cancel
Save