Minor code cleanup in dump_test.go.

This commit is contained in:
Dave Collins 2013-01-12 23:24:56 -06:00
parent 1dd6d991eb
commit a2ceabae67
1 changed files with 2 additions and 2 deletions

View File

@ -647,14 +647,14 @@ func TestDump(t *testing.T) {
buf := new(bytes.Buffer)
spew.Fdump(buf, test.in)
s := buf.String()
if test.want != buf.String() {
if test.want != s {
t.Errorf("Dump #%d\n got: %s want: %s", i, s, test.want)
continue
}
}
}
// Setup tests.f
// Setup tests.
func init() {
addIntTests()
addUintTests()