refactoring

This commit is contained in:
asoseil 2017-12-03 19:51:15 +01:00
parent bebc768746
commit efb96e86dc
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
"testing" "testing"
) )
func TestArgsParam(t *testing.T) { func TestParams(t *testing.T) {
set := flag.NewFlagSet("test", 0) set := flag.NewFlagSet("test", 0)
set.Bool("myflag", false, "doc") set.Bool("myflag", false, "doc")
p := cli.NewContext(nil, set, nil) p := cli.NewContext(nil, set, nil)
@ -43,7 +43,7 @@ func TestDuplicates(t *testing.T) {
} }
func TestInArray(t *testing.T) { func TestArray(t *testing.T) {
arr := []string{"a", "b", "c"} arr := []string{"a", "b", "c"}
if !array(arr[0], arr) { if !array(arr[0], arr) {
t.Fatal("Unexpected", arr[0], "should be in", arr) t.Fatal("Unexpected", arr[0], "should be in", arr)