aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikio Hara <mikioh.mikioh@gmail.com>2016-01-26 16:35:52 +0900
committerRuss Cox <rsc@golang.org>2016-01-26 14:47:49 +0000
commit295ec4f6f8f1eb39ddb97933298351cd57b2b088 (patch)
treeed436ed09e4e033f0b2d5d6e2cafb0b2c362ac59
parent0408ca7de12d72025d40c4d28fd8d9fb142b3c87 (diff)
downloadgo-295ec4f6f8f1eb39ddb97933298351cd57b2b088.tar.gz
go-295ec4f6f8f1eb39ddb97933298351cd57b2b088.zip
cmd/go/testdata: fix nits in test
Change-Id: I85fa5e672a476098f8711dcbb5b20ea1a3fa630d Reviewed-on: https://go-review.googlesource.com/18953 Reviewed-by: Ian Lance Taylor <iant@golang.org>
-rw-r--r--src/cmd/go/testdata/src/vend/hello/hello_test.go2
-rw-r--r--src/cmd/go/testdata/src/vend/hello/hellox_test.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/go/testdata/src/vend/hello/hello_test.go b/src/cmd/go/testdata/src/vend/hello/hello_test.go
index 5e72ada938..7190f599d6 100644
--- a/src/cmd/go/testdata/src/vend/hello/hello_test.go
+++ b/src/cmd/go/testdata/src/vend/hello/hello_test.go
@@ -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)
}
}
diff --git a/src/cmd/go/testdata/src/vend/hello/hellox_test.go b/src/cmd/go/testdata/src/vend/hello/hellox_test.go
index 96e6049dad..3f2165bd38 100644
--- a/src/cmd/go/testdata/src/vend/hello/hellox_test.go
+++ b/src/cmd/go/testdata/src/vend/hello/hellox_test.go
@@ -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)
}
}