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) {