1
0
mirror of https://github.com/golang/go synced 2024-11-24 09:20:02 -07:00

path: fix mismatch between error message and corresponding test function

Change-Id: Ib0ae6e3e678dc7ace21b891e946ffc6bc2a78835
GitHub-Last-Rev: 8c6704ea8c
GitHub-Pull-Request: golang/go#33534
Reviewed-on: https://go-review.googlesource.com/c/go/+/189378
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Derek Phan 2019-08-07 23:42:03 +00:00 committed by Ian Lance Taylor
parent 0ca4f6be35
commit e9782bdebd

View File

@ -138,7 +138,7 @@ var jointests = []JoinTest{
func TestJoin(t *testing.T) { func TestJoin(t *testing.T) {
for _, test := range jointests { for _, test := range jointests {
if p := Join(test.elem...); p != test.path { if p := Join(test.elem...); p != test.path {
t.Errorf("join(%q) = %q, want %q", test.elem, p, test.path) t.Errorf("Join(%q) = %q, want %q", test.elem, p, test.path)
} }
} }
} }