summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-09 11:53:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-09 11:53:16 +0000
commit126cd9d01ecea6d268ba73abda88e7fd0022ea0b (patch)
tree92cf970b956106232a8aa508f06911fd1f065678 /test
parent225f22cd9a2cc135652393570a32723d53e0e7e0 (diff)
add test for [ruby-dev:24460]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_io.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
new file mode 100644
index 0000000000..642c8f4430
--- /dev/null
+++ b/test/ruby/test_io.rb
@@ -0,0 +1,11 @@
+require 'test/unit'
+
+class TestIO < Test::Unit::TestCase
+ def test_gets_rs
+ r, w = IO.pipe
+ w.print "\377xyz"
+ w.close
+ assert_equal("\377", r.gets("\377"), "[ruby-dev:24460]")
+ r.close
+ end
+end