From 3f2b4716f1df9b276ca4fc1dcaebfd1e67dbe809 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Sat, 26 Oct 2024 13:05:30 -0400 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 114e66b..c84dec2 100644 --- a/re_test.go +++ b/re_test.go @@ -22,6 +22,7 @@ var reTests = []struct { {"(abc)*", "abcabcabc", []matchIndex{{0, 9}}}, {"((abc)|(def))*", "abcdef", []matchIndex{{0, 6}}}, {"(abc)*|(def)*", "abcdef", []matchIndex{{0, 3}, {3, 6}}}, + {"b*a*a", "bba", []matchIndex{{0, 3}}}, } func TestFindAllMatches(t *testing.T) {