diff options
Diffstat (limited to 'test/test_tcp_connect.rb')
-rw-r--r-- | test/test_tcp_connect.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_tcp_connect.rb b/test/test_tcp_connect.rb index 194a630..4fb4070 100644 --- a/test/test_tcp_connect.rb +++ b/test/test_tcp_connect.rb @@ -44,6 +44,8 @@ class TestKgioTcpConnect < Test::Unit::TestCase def test_tcp_socket_new_invalid assert_raises(ArgumentError) { Kgio::TCPSocket.new('example.com', 80) } assert_raises(ArgumentError) { Kgio::TCPSocket.new('999.999.999.999', 80) } + assert_raises(TypeError) { Kgio::TCPSocket.new("127.0.0.1", "http") } + assert_raises(TypeError) { Kgio::TCPSocket.new('example.com', "http") } end def test_tcp_socket_new |