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

@@ -153,3 +153,11 @@ func TestIntOrStringMarshalJSON(t *testing.T) {
}
}
}
func TestStringDiff(t *testing.T) {
diff := StringDiff("aaabb", "aaacc")
expect := "aaa\n\nA: bb\n\nB: cc\n\n"
if diff != expect {
t.Errorf("diff returned %v", diff)
}
}