From 97b8d4f54ee964551d917a60cce0edd54bdce5ac Mon Sep 17 00:00:00 2001 From: "diamondburned (Forefront)" Date: Thu, 23 Jan 2020 19:22:24 -0800 Subject: [PATCH] Fixed subcommands test --- bot/subcommand_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/subcommand_test.go b/bot/subcommand_test.go index f83c10b..b723f91 100644 --- a/bot/subcommand_test.go +++ b/bot/subcommand_test.go @@ -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 { @@ -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 {