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 authored and cpuguy83 committed Jun 17, 2021
1 parent 2377c96 commit 65725d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ func TestClearOnStateChange(t *testing.T) {
}

func TestC0(t *testing.T) {
expectedCall := "Execute([" + string(ANSI_LINE_FEED) + "])"
expectedCall := "Execute([" + string(rune(ANSI_LINE_FEED)) + "])"
c0Helper(t, []byte{ANSI_LINE_FEED}, "Ground", []string{expectedCall})
expectedCall = "Execute([" + string(ANSI_CARRIAGE_RETURN) + "])"
expectedCall = "Execute([" + string(rune(ANSI_CARRIAGE_RETURN)) + "])"
c0Helper(t, []byte{ANSI_CARRIAGE_RETURN}, "Ground", []string{expectedCall})
}

Expand Down

0 comments on commit 65725d2

Please sign in to comment.