From d3fc19d1d28df34e1aad08fd95393afde022b9c3 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> Date: Sat, 9 Oct 2004 11:53:17 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'ruby_1_8'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/ruby/test_io.rb (limited to 'test') 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 -- cgit v1.2.3