Skip to content
Myr

Fix two failing tests

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

The error message has changed ever so slightly.

authored by bep · committed by bep · parent bba5604 · 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
479 unmodified lines
480 if r.Error == nil {481 t.Errorf("invalid input should generate error")482 }483484 if !strings.Contains(r.Output, "invalid argument \"10E\" for -i10E") {484 if !strings.Contains(r.Output, "invalid argument \"10E\" for i10E") {485 t.Errorf("Wrong error message displayed, \n %s", r.Output)486 }487}488
287 unmodified lines
776 }777778 // With parsing error properly reported779 x = fullSetupTest("-i10E echo")780 if !strings.Contains(x.Output, "invalid argument \"10E\" for -i10E") {780 if !strings.Contains(x.Output, "invalid argument \"10E\" for i10E") {781 t.Errorf("Wrong error message displayed, \n %s", x.Output)782 }783784 //With quotes
104 unmodified lines