diff options
| author | Dave Collins <[email protected]> | 2013-01-12 23:24:56 -0600 |
|---|---|---|
| committer | Dave Collins <[email protected]> | 2013-01-12 23:24:56 -0600 |
| commit | a2ceabae67d4867f3edbffc1669e8267794ae860 (patch) | |
| tree | d9ae694041928cc88d7470b8c32f58f3c6f72bd3 | |
| parent | 1dd6d991ebfb7d929ff85d889afb039ffe5f391e (diff) | |
Minor code cleanup in dump_test.go.
| -rw-r--r-- | spew/dump_test.go | 4 |
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() |
