]> Cypherpunks repositories - gostls13.git/commitdiff
fix some bad testing prints
authorRob Pike <r@golang.org>
Thu, 16 Jul 2009 22:01:21 +0000 (15:01 -0700)
committerRob Pike <r@golang.org>
Thu, 16 Jul 2009 22:01:21 +0000 (15:01 -0700)
R=rsc
DELTA=5  (0 added, 0 deleted, 5 changed)
OCL=31740
CL=31742

src/pkg/reflect/all_test.go

index 59d799d6720081eb4a8120dad3985a57e04f9995..52e85f411f570b654a4d0e336a1d17c76f97d8da 100644 (file)
@@ -565,7 +565,7 @@ func TestInterfaceExtraction(t *testing.T) {
        s.w = os.Stdout;
        v := Indirect(NewValue(&s)).(*StructValue).Field(0).Interface();
        if v != s.w.(interface{}) {
-               t.Errorf("Interface() on interface: ", v, s.w);
+               t.Error("Interface() on interface: ", v, s.w);
        }
 }