Skip to content
Myr

Fix tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by Albert Nigmatzianov · parent 3d89ed4 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:cobra_test.go+2 added-2 removed
567 unmodified lines
568569 if r.Error == nil {570 t.Errorf("invalid input should generate error")571 }572 if !strings.Contains(r.Error.Error(), "invalid argument \"10E\" for i10E") {572 if !strings.Contains(r.Error.Error(), "invalid syntax") {573 t.Errorf("Wrong error message displayed, \n %s", r.Error)574 }575}576
409 unmodified lines
986 }987988 // With parsing error properly reported989 x = fullSetupTest("-i10E echo")990 if !strings.Contains(x.Error.Error(), "invalid argument \"10E\" for i10E") {990 if !strings.Contains(x.Error.Error(), "invalid syntax") {991 t.Errorf("Wrong error message displayed, \n %s", x.Error)992 }993994 //With quotes
202 unmodified lines