diff --git a/ast/ast.go b/ast/ast.go index 0feb773..b30191d 100755 --- a/ast/ast.go +++ b/ast/ast.go @@ -633,7 +633,7 @@ type PropertyAssignment struct { func (pa *PropertyAssignment) expressionNode() {} func (pa *PropertyAssignment) TokenLiteral() string { return pa.Token.Literal } -func (pa *PropertyAssignment) String() string { return "Ngl I'm tired" } +func (pa *PropertyAssignment) String() string { return "tach" } type PropertyExpression struct { Expression @@ -644,4 +644,4 @@ type PropertyExpression struct { func (pe *PropertyExpression) expressionNode() {} func (pe *PropertyExpression) TokenLiteral() string { return pe.Token.Literal } -func (pe *PropertyExpression) String() string { return "Ngl I'm tired part two" } +func (pe *PropertyExpression) String() string { return "Tach two" } diff --git a/ast/ast_test.go b/ast/ast_test.go index f1a0f01..5f662c7 100755 --- a/ast/ast_test.go +++ b/ast/ast_test.go @@ -10,7 +10,7 @@ func TestString(t *testing.T) { program := &Program{ Statements: []Statement{ &LetStatement{ - Token: token.Token{Type: token.LET, Literal: "fanya"}, + Token: token.Token{Type: token.LET, Literal: "let"}, Name: &Identifier{ Token: token.Token{Type: token.IDENT, Literal: "myVar"}, Value: "myVar", @@ -23,7 +23,7 @@ func TestString(t *testing.T) { }, } - if program.String() != "fanya myVar = anotherVar;" { + if program.String() != "let myVar = anotherVar;" { t.Errorf("program.String() wrong. got=%q", program.String()) } }