This adds a test case to resolveReferenceTests to ensure that a
relative path is correctly appended to a base URL that ends with a
trailing slash.
Change-Id: I94ea65355bb96f23acff09a3992c9dcf6e47da60
Reviewed-on: https://go-review.googlesource.com/c/go/+/741880
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
Reviewed-by: Damien Neil <dneil@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
{"http://foo.com", "bar", "http://foo.com/bar"},
{"http://foo.com/", "bar", "http://foo.com/bar"},
{"http://foo.com/bar/baz", "quux", "http://foo.com/bar/quux"},
+ {"http://foo.com/bar/baz/", "quux", "http://foo.com/bar/baz/quux"},
// ... going up
{"http://foo.com/bar/baz", "../quux", "http://foo.com/quux"},