commit 14ddb9b88bfddc897e3deb7fe02967afbe0090c7 Author: David Fifield david@bamsoftware.com Date: Sun Dec 8 11:32:12 2013 -0800
Add tests for weird port numbers.
--- FAIL: TestResolveAddr (0.00 seconds) pt_test.go:221: "1.2.3.4:http" unexpectedly succeeded: "1.2.3.4:80" pt_test.go:221: "1.2.3.4:65536" unexpectedly succeeded: "1.2.3.4:0" --- pt_test.go | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/pt_test.go b/pt_test.go index f3d9bc1..e75bb02 100644 --- a/pt_test.go +++ b/pt_test.go @@ -201,6 +201,10 @@ func TestResolveAddr(t *testing.T) { "1:2:3:4::9999", "localhost:9999", "[localhost]:9999", + "1.2.3.4:http", + "1.2.3.4:0x50", + "1.2.3.4:-65456", + "1.2.3.4:65536", } goodTests := [...]struct { input string
tor-commits@lists.torproject.org