]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/testdata: fix nits in test
authorMikio Hara <mikioh.mikioh@gmail.com>
Tue, 26 Jan 2016 07:35:52 +0000 (16:35 +0900)
committerRuss Cox <rsc@golang.org>
Tue, 26 Jan 2016 14:47:49 +0000 (14:47 +0000)
Change-Id: I85fa5e672a476098f8711dcbb5b20ea1a3fa630d
Reviewed-on: https://go-review.googlesource.com/18953
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/testdata/src/vend/hello/hello_test.go
src/cmd/go/testdata/src/vend/hello/hellox_test.go

index 5e72ada9387a7a79d903d8557b214c0899c432d5..7190f599d68ca8b543ca7c55e1a870973cea1972 100644 (file)
@@ -7,6 +7,6 @@ import (
 
 func TestMsgInternal(t *testing.T) {
        if strings.Msg != "hello, world" {
-               t.Fatal("unexpected msg: %v", strings.Msg)
+               t.Fatalf("unexpected msg: %v", strings.Msg)
        }
 }
index 96e6049dad0ae1642f9fbdcb3a91917675ecd52d..3f2165bd38abea1c76ebf20edcfce8478c3b9ce6 100644 (file)
@@ -7,6 +7,6 @@ import (
 
 func TestMsgExternal(t *testing.T) {
        if strings.Msg != "hello, world" {
-               t.Fatal("unexpected msg: %v", strings.Msg)
+               t.Fatalf("unexpected msg: %v", strings.Msg)
        }
 }