From b8ca55fcb982b3ceba8317452d20ac1b680c156e Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 9 Oct 2004 11:53:16 +0000 Subject: add test for [ruby-dev:24460] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- MANIFEST | 1 + test/ruby/test_io.rb | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/ruby/test_io.rb diff --git a/MANIFEST b/MANIFEST index f463cdadd..156fc725b 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 000000000..642c8f443 --- /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 -- cgit