From e83d746ded99394f13cdcf3ecf7bdf01bc567b1e Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 18 Dec 2024 15:22:50 -0500 Subject: [PATCH] Added more test cases --- re_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/re_test.go b/re_test.go index 8a53720..9fdee67 100644 --- a/re_test.go +++ b/re_test.go @@ -181,6 +181,7 @@ var groupTests = []struct { {"(a?)a?", "b", []Match{[]Group{{0, 0}, {0, 0}}, []Group{{1, 1}, {1, 1}}}}, {"(a?)a?", "ab", []Match{[]Group{{0, 1}, {0, 1}}, []Group{{1, 1}, {1, 1}}, []Group{{2, 2}, {2, 2}}}}, {"(a?)a?", "aa", []Match{[]Group{{0, 2}, {0, 1}}, []Group{{2, 2}, {2, 2}}}}, + {"a((b.d){3})", "abfdbhdbid", []Match{[]Group{{0, 10}, {1, 10}, {7, 10}}}}, } func TestFindAllMatches(t *testing.T) {