about summary refs log tree commit homepage
path: root/test/test_socket.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_socket.rb')
-rw-r--r--test/test_socket.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_socket.rb b/test/test_socket.rb
new file mode 100644
index 0000000..a85f0cc
--- /dev/null
+++ b/test/test_socket.rb
@@ -0,0 +1,14 @@
+require 'test/unit'
+require 'kgio'
+
+class TestKgioSocket < Test::Unit::TestCase
+  def test_socket_args
+    s = Kgio::Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
+    assert_kind_of Socket, s
+    assert_instance_of Kgio::Socket, s
+
+    s = Kgio::Socket.new(Socket::AF_UNIX, Socket::SOCK_STREAM, 0)
+    assert_kind_of Socket, s
+    assert_instance_of Kgio::Socket, s
+  end
+end