]> Cypherpunks repositories - gostls13.git/commitdiff
net: add test case for SplitHostPort with zone
authorRuss Cox <rsc@golang.org>
Thu, 29 Nov 2012 20:43:05 +0000 (15:43 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 29 Nov 2012 20:43:05 +0000 (15:43 -0500)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6854119

src/pkg/net/ip_test.go

index dc8a35270bf6c9008a9e4f954026352fece72e79..8324d2a327c1b22c835f4b73953edd142f199a8e 100644 (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) {