Added more test cases

master
Aadhavan Srinivasan 4 weeks ago
parent 7916629c4d
commit 74c177324b

@ -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}}}, {"(?<!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 // Todo - add lookaround tests
{"(?<=f)f+(?=f)", "fffff", []MatchIndex{{1, 4}}},
{"(?<=f)f+(?=f)", "fffffa", []MatchIndex{{1, 4}}},
} }
func TestFindAllMatches(t *testing.T) { func TestFindAllMatches(t *testing.T) {

Loading…
Cancel
Save