net: add test case for SplitHostPort with zone

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6854119
This commit is contained in:
Russ Cox 2012-11-29 15:43:05 -05:00
parent 25dd00295c
commit 6d622416f1
1 changed files with 1 additions and 0 deletions

View File

@ -268,6 +268,7 @@ var splitjointests = []struct {
{"www.google.com", "80", "www.google.com:80"},
{"127.0.0.1", "1234", "127.0.0.1:1234"},
{"::1", "80", "[::1]:80"},
{"google.com", "https%foo", "google.com:https%foo"}, // Go 1.0 behavior
}
func TestSplitHostPort(t *testing.T) {