Added more test cases
This commit is contained in:
@@ -146,6 +146,8 @@ var reTests = []struct {
|
||||
{"(?<!hello)", "hello world", []MatchIndex{{0, 0}, {1, 1}, {2, 2}, {3, 3}, {4, 4}, {6, 6}, {7, 7}, {8, 8}, {9, 9}, {10, 10}, {11, 11}}},
|
||||
|
||||
// Todo - add lookaround tests
|
||||
{"(?<=f)f+(?=f)", "fffff", []MatchIndex{{1, 4}}},
|
||||
{"(?<=f)f+(?=f)", "fffffa", []MatchIndex{{1, 4}}},
|
||||
}
|
||||
|
||||
func TestFindAllMatches(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user