From 2da427d49c7c04b83f8ad81534db471d3037a41a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 23 Mar 2015 00:19:56 +0100 Subject: Parser stub --- lexer_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lexer_test.go') diff --git a/lexer_test.go b/lexer_test.go index 785a810..27cdfed 100644 --- a/lexer_test.go +++ b/lexer_test.go @@ -4,12 +4,13 @@ import "testing" func testInput(t *testing.T, ty int, s ...string) { for _, input := range s { + yy := new(yySymType) l := lex(input + "\n") - typ, s := l.Lex() + typ := l.Lex(yy) if input[0] == '\'' { input = input[1 : len(input)-1] } - if typ != ty || s != input { + if typ != ty || yy.sval != input { t.Error("expeced", input, "got", s) } } -- cgit v1.2.3