[goptlib/master] Add tests for whitespace in resolveAddr.

9 Dec
2013
9 Dec
'13
2:49 a.m.
commit 2bd508173cb41f910733c03e1e56f65dd97291a6 Author: David Fifield <david@bamsoftware.com> Date: Sun Dec 8 11:40:24 2013 -0800 Add tests for whitespace in resolveAddr. --- pt_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pt_test.go b/pt_test.go index e75bb02..653d64d 100644 --- a/pt_test.go +++ b/pt_test.go @@ -205,6 +205,10 @@ func TestResolveAddr(t *testing.T) { "1.2.3.4:0x50", "1.2.3.4:-65456", "1.2.3.4:65536", + "1.2.3.4:80\x00", + "1.2.3.4:80 ", + " 1.2.3.4:80", + "1.2.3.4 : 80", } goodTests := [...]struct { input string
4170
Age (days ago)
4170
Last active (days ago)
0 comments
1 participants
participants (1)
-
dcf@torproject.org