Skip to content

Commit

Permalink
Fixed subcommands test
Browse files Browse the repository at this point in the history
  • Loading branch information
diamondburned committed Jan 24, 2020
1 parent aadcbd0 commit 97b8d4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bot/subcommand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ func TestSubcommand(t *testing.T) {
switch this.Command {
case "send":
foundSend = true
if len(this.arguments) != 1 {
t.Fatal("invalid arguments len", len(this.arguments))
if len(this.Arguments) != 1 {
t.Fatal("invalid arguments len", len(this.Arguments))
}

case "custom":
foundCustom = true
if len(this.arguments) > 0 {
if len(this.Arguments) > 0 {
t.Fatal("arguments should be 0 for custom")
}
if this.parseType == nil {
Expand All @@ -58,7 +58,7 @@ func TestSubcommand(t *testing.T) {

case "noargs":
foundNoArgs = true
if len(this.arguments) != 0 {
if len(this.Arguments) != 0 {
t.Fatal("expected 0 arguments, got non-zero")
}
if this.parseType != nil {
Expand Down

0 comments on commit 97b8d4f

Please sign in to comment.