summaryrefslogtreecommitdiff
path: root/test/ruby/test_io_m17n.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_io_m17n.rb')
-rw-r--r--test/ruby/test_io_m17n.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ruby/test_io_m17n.rb b/test/ruby/test_io_m17n.rb
index 98a52939d0..218a60b044 100644
--- a/test/ruby/test_io_m17n.rb
+++ b/test/ruby/test_io_m17n.rb
@@ -1774,5 +1774,15 @@ EOT
}
end
+
+ def test_cbuf_select
+ with_tmpdir {
+ r, w = IO.pipe
+ w << "\r\n"
+ r.set_encoding("US-ASCII:UTF-8", :universal_newline => true)
+ r.ungetc(r.getc)
+ assert_equal([[r],[],[]], IO.select([r], nil, nil, 1))
+ }
+ end
end