Add go fuzzer in preparation for testing. Also gofmt a few files that needed it.

This commit is contained in:
Daniel Smith
2014-07-25 17:58:36 -07:00
parent 8a5cc87df8
commit aa92dd7fb2
6 changed files with 524 additions and 4 deletions

View File

@@ -43,13 +43,13 @@ func TestStringSet(t *testing.T) {
t.Errorf("Unexpected contents: %#v", s)
}
s.Insert("a")
if s.HasAll("a","b","d") {
if s.HasAll("a", "b", "d") {
t.Errorf("Unexpected contents: %#v", s)
}
if !s.HasAll("a","b",) {
if !s.HasAll("a", "b") {
t.Errorf("Missing contents: %#v", s)
}
s2.Insert("a","b","d")
s2.Insert("a", "b", "d")
if s.IsSuperset(s2) {
t.Errorf("Unexpected contents: %#v", s)
}