Pārlūkot izejas kodu

Minor code cleanup in dump_test.go.

Dave Collins 13 gadi atpakaļ
vecāks
revīzija
a2ceabae67
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      spew/dump_test.go

+ 2 - 2
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()