From 3fda07280ed8edb1079ad32143ee617e7bb0e010 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 11 Dec 2024 00:30:37 -0500 Subject: [PATCH] Added more tests --- re_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/re_test.go b/re_test.go index 5d205c4..65d2859 100644 --- a/re_test.go +++ b/re_test.go @@ -150,6 +150,9 @@ var reTests = []struct { {"^((3[7-9])|([4-9][0-9])|([1-9][0-9][0-9])|(1000))$", "4000", []Group{}}, // Todo - add lookaround tests + {"(?<=bo)y", "boy", []Group{{2, 3}}}, + {"bo(?=y)", "boy", []Group{{0, 2}}}, + // Todo - add numeric range tests // Todo - add capturing group tests {"(?<=f)f+(?=f)", "fffff", []Group{{1, 4}}},