@@ -116,7 +116,7 @@ func TestAcceptByParse(t *testing.T) {
116116 }
117117 p , err := NewParser (BQL ())
118118 if err != nil {
119- t .Errorf ("grammar.NewParser: should have produced a valid BQL parser" )
119+ t .Errorf ("grammar.NewParser: should have produced a valid BQL parser, %v" , err )
120120 }
121121 for _ , input := range table {
122122 if err := p .Parse (NewLLk (input , 1 ), & semantic.Statement {}); err != nil {
@@ -210,7 +210,7 @@ func TestRejectByParse(t *testing.T) {
210210 }
211211 p , err := NewParser (BQL ())
212212 if err != nil {
213- t .Errorf ("grammar.NewParser: should have produced a valid BQL parser" )
213+ t .Errorf ("grammar.NewParser: should have produced a valid BQL parser, %v" , err )
214214 }
215215 for _ , input := range table {
216216 if err := p .Parse (NewLLk (input , 1 ), & semantic.Statement {}); err == nil {
@@ -252,7 +252,7 @@ func TestAcceptOpsByParseAndSemantic(t *testing.T) {
252252 }
253253 p , err := NewParser (SemanticBQL ())
254254 if err != nil {
255- t .Errorf ("grammar.NewParser: should have produced a valid BQL parser" )
255+ t .Errorf ("grammar.NewParser: should have produced a valid BQL parser, %v" , err )
256256 }
257257 for _ , entry := range table {
258258 st := & semantic.Statement {}
@@ -303,7 +303,7 @@ func TestAcceptQueryBySemanticParse(t *testing.T) {
303303 }
304304 p , err := NewParser (SemanticBQL ())
305305 if err != nil {
306- t .Errorf ("grammar.NewParser: should have produced a valid BQL parser" )
306+ t .Errorf ("grammar.NewParser: should have produced a valid BQL parser, %v" , err )
307307 }
308308 for _ , input := range table {
309309 if err := p .Parse (NewLLk (input , 1 ), & semantic.Statement {}); err != nil {
@@ -334,7 +334,7 @@ func TestRejectByParseAndSemantic(t *testing.T) {
334334 }
335335 p , err := NewParser (SemanticBQL ())
336336 if err != nil {
337- t .Errorf ("grammar.NewParser: should have produced a valid BQL parser" )
337+ t .Errorf ("grammar.NewParser: should have produced a valid BQL parser, %v" , err )
338338 }
339339 for _ , entry := range table {
340340 st := & semantic.Statement {}
0 commit comments