diff options
| author | Rob Pike <r@golang.org> | 2016-03-16 13:28:32 +1100 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2016-03-16 03:59:03 +0000 |
| commit | 55567d37e9c0543347239df69888f5f321fc9d08 (patch) | |
| tree | a92982f7575d84448c9bc1778e54ce3e3b37c594 /src/path | |
| parent | cf08eadf9fbde7d992883d3382f4e353eebe53a9 (diff) | |
| download | go-55567d37e9c0543347239df69888f5f321fc9d08.tar.xz | |
path: fix up bizarre test
The Join test was doing something remarkable and unnecessary instead of
just using ... on a slice. Maybe it was an editing relic.
Fix it by deleting the monstrosity.
Change-Id: I5b90c6d539d334a9c27e57d26dacd831721cfcfe
Reviewed-on: https://go-review.googlesource.com/20727
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/path')
| -rw-r--r-- | src/path/path_test.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/path/path_test.go b/src/path/path_test.go index 13b585223f..85b2450a62 100644 --- a/src/path/path_test.go +++ b/src/path/path_test.go @@ -135,15 +135,9 @@ var jointests = []JoinTest{ {[]string{"", ""}, ""}, } -// join takes a []string and passes it to Join. -func join(elem []string, args ...string) string { - args = elem - return Join(args...) -} - func TestJoin(t *testing.T) { 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) } } |
