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)
|
buf := new(bytes.Buffer)
|
||||||
spew.Fdump(buf, test.in)
|
spew.Fdump(buf, test.in)
|
||||||
s := buf.String()
|
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)
|
t.Errorf("Dump #%d\n got: %s want: %s", i, s, test.want)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup tests.f
|
// Setup tests.
|
||||||
func init() {
|
func init() {
|
||||||
addIntTests()
|
addIntTests()
|
||||||
addUintTests()
|
addUintTests()
|
||||||
|
|
Loading…
Reference in New Issue