Skip to content

Commit

Permalink
fix(parser): fix go test error on parser (talent-plan#70)
Browse files Browse the repository at this point in the history
golang/go#32479 removed the explicit type conversion string(i) where i has an integer type other than rune in go 1.15. That is a **backward incompatible** change.

Fix talent-plan#70.
  • Loading branch information
An-DJ committed Jan 26, 2021
1 parent 29d8140 commit 9ce8946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (s *testLexerSuite) TestscanString(c *C) {
{`' \n\tTest String'`, " \n\tTest String"},
{`'\x\B'`, "xB"},
{`'\0\'\"\b\n\r\t\\'`, "\000'\"\b\n\r\t\\"},
{`'\Z'`, string(26)},
{`'\Z'`, string(rune(26))},
{`'\%\_'`, `\%\_`},
{`'hello'`, "hello"},
{`'"hello"'`, `"hello"`},
Expand Down

0 comments on commit 9ce8946

Please sign in to comment.