summaryrefslogtreecommitdiff
path: root/ruby_1_8_5/test/ruby/test_io.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ruby_1_8_5/test/ruby/test_io.rb')
-rw-r--r--ruby_1_8_5/test/ruby/test_io.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/ruby_1_8_5/test/ruby/test_io.rb b/ruby_1_8_5/test/ruby/test_io.rb
new file mode 100644
index 0000000000..642c8f4430
--- /dev/null
+++ b/ruby_1_8_5/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