diff --git a/parser/lexer_test.go b/parser/lexer_test.go index 1124bca..666e48c 100644 --- a/parser/lexer_test.go +++ b/parser/lexer_test.go @@ -37,7 +37,7 @@ func TestBool(t *testing.T) { } if l.TokenText() != ident.text { - t.Errorf("text = %s want %s", lit, ident.text) + t.Errorf("text = %s want %s", l.TokenText(), ident.text) } } @@ -81,7 +81,7 @@ func TestIdent(t *testing.T) { } if l.TokenText() != ident.text { - t.Errorf("text = %s want %s", lit, ident.text) + t.Errorf("text = %s want %s", l.TokenText(), ident.text) } } @@ -129,7 +129,7 @@ func TestString(t *testing.T) { } if l.TokenText() != ident.text { - t.Errorf("text = %s want %s", lit, ident.text) + t.Errorf("text = %s want %s", l.TokenText(), ident.text) } }