From 1e0502c6aa8ebcf9f077e31964ca06cfbff7cc87 Mon Sep 17 00:00:00 2001 From: Aadhavan Srinivasan Date: Wed, 20 Nov 2024 00:23:57 -0500 Subject: [PATCH] Added unicode tests --- re_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/re_test.go b/re_test.go index 36b4590..b3d3dc6 100644 --- a/re_test.go +++ b/re_test.go @@ -109,6 +109,10 @@ var reTests = []struct { {`\d{3,4}`, "ababab555", []MatchIndex{{6, 9}}}, {`\bpaint\b`, "paints", []MatchIndex{}}, {`\b\w{5}\b`, "paint", []MatchIndex{{0, 5}}}, + + // Unicode tests + {`.+`, "úïäö´«åæïëòöê»éãçâï«úïòíñ", []MatchIndex{{0, 25}}}, + {`a.b`, "a²b", []MatchIndex{{0, 3}}}, } func TestFindAllMatches(t *testing.T) {