sleepy_penguin RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [sleepy.penguin] [PATCH 3/4] test_kqueue_io: additional test for IO-likeness
  @ 2013-05-03  1:20  7% ` Eric Wong
  0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2013-05-03  1:20 UTC (permalink / raw)
  To: sleepy.penguin

We need to ensure Kqueue::IO remains IO-like
---
 test/test_kqueue_io.rb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/test_kqueue_io.rb b/test/test_kqueue_io.rb
index 076c9f0..04e3103 100644
--- a/test/test_kqueue_io.rb
+++ b/test/test_kqueue_io.rb
@@ -16,6 +16,13 @@ def teardown
     end
   end
 
+  def test_io_like
+    kq = Kqueue::IO.new
+    @to_close << kq
+    assert_equal kq, kq.to_io
+    assert_kind_of Integer, kq.fileno
+  end
+
   def test_bad_type
     kq = Kqueue::IO.new
     @to_close << kq
-- 
1.8.2.1.367.gc875ca7



^ permalink raw reply related	[relevance 7%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-05-03  1:20     [sleepy.penguin] [PATCH 1/4] doc: flesh out kqueue-related documentation Eric Wong
2013-05-03  1:20  7% ` [sleepy.penguin] [PATCH 3/4] test_kqueue_io: additional test for IO-likeness Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/sleepy_penguin.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).