summaryrefslogtreecommitdiff
path: root/spew
diff options
context:
space:
mode:
Diffstat (limited to 'spew')
-rw-r--r--spew/dump_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/spew/dump_test.go b/spew/dump_test.go
index a9504a8..f40afd3 100644
--- a/spew/dump_test.go
+++ b/spew/dump_test.go
@@ -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()