Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Selyss committed Dec 19, 2023
1 parent dc3735f commit b1527be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ast/ast_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func TestString(t *testing.T) {
program := &Program{
Statements: []Statement{
&LetStatement{
Token: token.Token{Type: token.LET, Literal: "LET"},
Token: token.Token{Type: token.LET, Literal: "let"},
Name: &Identifier{
Token: token.Token{Type: token.IDENT, Literal: "myVar"},
Value: "myVar",
Expand All @@ -22,7 +22,7 @@ func TestString(t *testing.T) {
},
},
}
if program.String() != "LET myVar = anotherVar." {
if program.String() != "let myVar = anotherVar." {
t.Errorf("program.String() wrong. got=%q", program.String())
}
}

0 comments on commit b1527be

Please sign in to comment.