Skip to content

Commit

Permalink
Convert int to string using rune()
Browse files Browse the repository at this point in the history
See golang/go#32479

Signed-off-by: Robert-André Mauchin <zebob.m@gmail.com>
  • Loading branch information
eclipseo committed Aug 22, 2020
1 parent 74bac81 commit 6638ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regexp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,7 @@ func TestHexadecimalCurlyBraces(t *testing.T) {
}

re = MustCompile(`\x{0010ffff}`, 0)
if m, err := re.MatchString(string(0x10ffff)); err != nil {
if m, err := re.MatchString(string(rune(0x10ffff))); err != nil {
t.Fatalf("Unexpected err: %v", err)
} else if !m {
t.Fatalf("Expected match")
Expand Down

0 comments on commit 6638ef7

Please sign in to comment.