Minor code cleanup in dump_test.go.
This commit is contained in:
parent
1dd6d991eb
commit
a2ceabae67
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue