From f2aa1fbc4ae8e20ba869066106e96c69c8b60012 Mon Sep 17 00:00:00 2001 From: Fatih Arslan Date: Sun, 4 Oct 2015 20:13:38 +0300 Subject: [PATCH] lexer: fix tests --- parser/lexer_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } }