func TestReaderShouldReadError(t *testing.T) { assert := assert.New(t) reader := strings.NewReader("ff") _, err := Read(reader) assert.ThatBool(err == nil).IsFalse() }
func TestHelpShouldSearchWholeParamsList(t *testing.T) { assert := assert.New(t) result := ShouldDisplayHelp([]string{"", "", "", "-help"}) assert.ThatBool(result).IsTrue() }
func TestHelpShouldReturnFalseIsNotAskedForHelp(t *testing.T) { assert := assert.New(t) result := ShouldDisplayHelp([]string{}) assert.ThatBool(result).IsFalse() }
func TestHelpShouldReturnTrue6(t *testing.T) { assert := assert.New(t) result := ShouldDisplayHelp([]string{"/?"}) assert.ThatBool(result).IsTrue() }