mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-28 01:33:10 +00:00
Fixed subcommands test
This commit is contained in:
parent
aadcbd0767
commit
97b8d4f54e
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue