From 704bec122ae846a613fd668bfbf1d1411460dfdc Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Mon, 28 Oct 2024 15:44:12 -0400 Subject: [PATCH] Added more tests --- re_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/re_test.go b/re_test.go index 0a1e726..62ad4c2 100644 --- a/re_test.go +++ b/re_test.go @@ -40,6 +40,7 @@ var reTests = []struct { {"a?b?c?", "ac", []matchIndex{{0, 2}}}, {"a?b?c", "abc", []matchIndex{{0, 3}}}, {"a?b?c", "acb", []matchIndex{{0, 2}}}, + {"a(b|b)", "ab", []matchIndex{{0, 2}}}, } func TestFindAllMatches(t *testing.T) {