From 48cff259b2661d544523ce9cd8c8468396c2d64c Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Tue, 21 Jan 2025 22:13:57 -0500 Subject: [PATCH] Updated tests --- re_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/re_test.go b/re_test.go index 14f3892..90c1f0e 100644 --- a/re_test.go +++ b/re_test.go @@ -152,6 +152,8 @@ var reTests = []struct { {"^((3[7-9])|([4-9][0-9])|([1-9][0-9][0-9])|(1000))$", "400", []Group{{0, 3}}}, {"^((3[7-9])|([4-9][0-9])|([1-9][0-9][0-9])|(1000))$", "4000", []Group{}}, {"a{1,3}", "aaaaa", []Group{{0, 3}, {3, 5}}}, + {`\\[ab\\]`, "a", []Group{}}, + {`\\[ab\\]`, `\a`, []Group{{0, 2}}}, // Lookaround tests {"(?<=bo)y", "boy", []Group{{2, 3}}},