summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANIFEST1
-rw-r--r--test/ruby/test_io.rb11
2 files changed, 12 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST
index f463cdadde..156fc725b0 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -916,6 +916,7 @@ test/ruby/test_float.rb
test/ruby/test_gc.rb
test/ruby/test_hash.rb
test/ruby/test_ifunless.rb
+test/ruby/test_io.rb
test/ruby/test_iterator.rb
test/ruby/test_marshal.rb
test/ruby/test_math.rb
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