Do not consider an empty string to be an error in list.go

This commit is contained in:
Satnam Singh
2014-12-09 12:19:34 -08:00
parent 6ab6c90ce5
commit 7582884f30
2 changed files with 0 additions and 13 deletions

View File

@@ -30,13 +30,3 @@ func TestStringListSet(t *testing.T) {
t.Errorf("expected: %v, got: %v:", expected, sl)
}
}
func TestStringListSetErr(t *testing.T) {
var sl StringList
if err := sl.Set(""); err == nil {
t.Errorf("expected error for empty string")
}
if err := sl.Set(","); err == nil {
t.Errorf("expected error for list of empty strings")
}
}