Added more test cases
This commit is contained in:
@@ -22,6 +22,7 @@ var reTests = []struct {
|
|||||||
{"(abc)*", "abcabcabc", []matchIndex{{0, 9}}},
|
{"(abc)*", "abcabcabc", []matchIndex{{0, 9}}},
|
||||||
{"((abc)|(def))*", "abcdef", []matchIndex{{0, 6}}},
|
{"((abc)|(def))*", "abcdef", []matchIndex{{0, 6}}},
|
||||||
{"(abc)*|(def)*", "abcdef", []matchIndex{{0, 3}, {3, 6}}},
|
{"(abc)*|(def)*", "abcdef", []matchIndex{{0, 3}, {3, 6}}},
|
||||||
|
{"b*a*a", "bba", []matchIndex{{0, 3}}},
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestFindAllMatches(t *testing.T) {
|
func TestFindAllMatches(t *testing.T) {
|
||||||
|
Reference in New Issue
Block a user