Skip to content

Commit

Permalink
Merge pull request #1996 from suzuki-shunsuke/fix-typo
Browse files Browse the repository at this point in the history
style: fix typos
  • Loading branch information
Juneezee authored Oct 27, 2024
2 parents 94107c2 + 6591222 commit 6524cf9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3121,35 +3121,35 @@ func TestShorthandCommand(t *testing.T) {

err := cmd.Run(buildTestContext(t), []string{"foo", "cth"})
assert.NoError(t, err)
assert.True(t, cmd1 == 1 && cmd2 == 0, "Expected command1 to be trigerred once")
assert.True(t, cmd1 == 1 && cmd2 == 0, "Expected command1 to be triggered once")

cmd1 = 0
cmd2 = 0

err = cmd.Run(buildTestContext(t), []string{"foo", "cthd"})
assert.NoError(t, err)
assert.True(t, cmd1 == 1 && cmd2 == 0, "Expected command1 to be trigerred once")
assert.True(t, cmd1 == 1 && cmd2 == 0, "Expected command1 to be triggered once")

cmd1 = 0
cmd2 = 0

err = cmd.Run(buildTestContext(t), []string{"foo", "cthe"})
assert.NoError(t, err)
assert.True(t, cmd1 == 1 && cmd2 == 0, "Expected command1 to be trigerred once")
assert.True(t, cmd1 == 1 && cmd2 == 0, "Expected command1 to be triggered once")

cmd1 = 0
cmd2 = 0

err = cmd.Run(buildTestContext(t), []string{"foo", "cthert"})
assert.NoError(t, err)
assert.True(t, cmd1 == 0 && cmd2 == 1, "Expected command1 to be trigerred once")
assert.True(t, cmd1 == 0 && cmd2 == 1, "Expected command1 to be triggered once")

cmd1 = 0
cmd2 = 0

err = cmd.Run(buildTestContext(t), []string{"foo", "cthet"})
assert.NoError(t, err)
assert.True(t, cmd1 == 0 && cmd2 == 1, "Expected command1 to be trigerred once")
assert.True(t, cmd1 == 0 && cmd2 == 1, "Expected command1 to be triggered once")
}

func TestCommand_Int(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion flag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3100,7 +3100,7 @@ func TestNonStringMap(t *testing.T) {
assert.ErrorContains(t, f.Set("invalid=value"), "ParseFloat")
}

func TestUnqouteUsage(t *testing.T) {
func TestUnquoteUsage(t *testing.T) {
tests := []struct {
str string
expStr string
Expand Down

0 comments on commit 6524cf9

Please sign in to comment.