From cdf221078d8910c97e46560cce531a1c6d4817d3 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Sat, 8 Nov 2014 03:25:53 -0800 Subject: [PATCH] commands: Fixed tests --- commands/command_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/commands/command_test.go b/commands/command_test.go index c41f1ce96..c113a324b 100644 --- a/commands/command_test.go +++ b/commands/command_test.go @@ -5,8 +5,8 @@ import "testing" func TestOptionValidation(t *testing.T) { cmd := Command{ Options: []Option{ - Option{[]string{"b", "beep"}, Int}, - Option{[]string{"B", "boop"}, String}, + Option{[]string{"b", "beep"}, Int, "enables beeper"}, + Option{[]string{"B", "boop"}, String, "password for booper"}, }, Run: func(res Response, req Request) {}, } @@ -83,14 +83,14 @@ func TestRegistration(t *testing.T) { cmdA := &Command{ Options: []Option{ - Option{[]string{"beep"}, Int}, + Option{[]string{"beep"}, Int, "number of beeps"}, }, Run: noop, } cmdB := &Command{ Options: []Option{ - Option{[]string{"beep"}, Int}, + Option{[]string{"beep"}, Int, "number of beeps"}, }, Run: noop, Subcommands: map[string]*Command{ @@ -100,7 +100,7 @@ func TestRegistration(t *testing.T) { cmdC := &Command{ Options: []Option{ - Option{[]string{"encoding"}, String}, + Option{[]string{"encoding"}, String, "data encoding type"}, }, Run: noop, }