Skip to content
Snippets Groups Projects
Commit 04d32e47 authored by Manish R Jain's avatar Manish R Jain
Browse files

Fix build breakage in tests

parent d5f2d9b1
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment