From 04d32e47e54c8ea8649d144936370a7a7c45a1a1 Mon Sep 17 00:00:00 2001 From: Manish R Jain <manishrjain@gmail.com> Date: Wed, 2 Mar 2016 12:21:54 +1100 Subject: [PATCH] Fix build breakage in tests --- gql/state_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gql/state_test.go b/gql/state_test.go index 69ff9273..ce59d7e5 100644 --- a/gql/state_test.go +++ b/gql/state_test.go @@ -34,7 +34,8 @@ func TestNewLexer(t *testing.T) { } } }` - l := lex.NewLexer(input) + l := &lex.Lexer{} + l.Init(input) go run(l) for item := range l.Items { if item.Typ == lex.ItemError { @@ -61,7 +62,8 @@ func TestNewLexerMutation(t *testing.T) { _city } }` - l := lex.NewLexer(input) + l := &lex.Lexer{} + l.Init(input) go run(l) for item := range l.Items { if item.Typ == lex.ItemError { @@ -79,7 +81,8 @@ func TestAbruptMutation(t *testing.T) { Why is this #!!? How is this? }` - l := lex.NewLexer(input) + l := &lex.Lexer{} + l.Init(input) go run(l) var typ lex.ItemType for item := range l.Items { -- GitLab