Skip to content

Commit

Permalink
minor corrections to unit tests (#2003)
Browse files Browse the repository at this point in the history
  • Loading branch information
JunNishimura committed Jul 23, 2023
1 parent 60d056d commit fd865a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions command_test.go
Expand Up @@ -438,7 +438,7 @@ func TestFlagLong(t *testing.T) {

output, err := executeCommand(c, "--intf=7", "--sf=abc", "one", "--", "two")
if output != "" {
t.Errorf("Unexpected output: %v", err)
t.Errorf("Unexpected output: %v", output)
}
if err != nil {
t.Errorf("Unexpected error: %v", err)
Expand Down Expand Up @@ -475,7 +475,7 @@ func TestFlagShort(t *testing.T) {

output, err := executeCommand(c, "-i", "7", "-sabc", "one", "two")
if output != "" {
t.Errorf("Unexpected output: %v", err)
t.Errorf("Unexpected output: %v", output)
}
if err != nil {
t.Errorf("Unexpected error: %v", err)
Expand Down Expand Up @@ -504,7 +504,7 @@ func TestChildFlag(t *testing.T) {

output, err := executeCommand(rootCmd, "child", "-i7")
if output != "" {
t.Errorf("Unexpected output: %v", err)
t.Errorf("Unexpected output: %v", output)
}
if err != nil {
t.Errorf("Unexpected error: %v", err)
Expand Down

0 comments on commit fd865a4

Please sign in to comment.