diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-09 11:53:16 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-09 11:53:16 +0000 |
| commit | b8ca55fcb982b3ceba8317452d20ac1b680c156e (patch) | |
| tree | 92cf970b956106232a8aa508f06911fd1f065678 /test/ruby/test_io.rb | |
| parent | a184ef4408533de8e845f9635abefe94ccca0085 (diff) | |
| download | ruby-b8ca55fcb982b3ceba8317452d20ac1b680c156e.tar.gz ruby-b8ca55fcb982b3ceba8317452d20ac1b680c156e.tar.xz ruby-b8ca55fcb982b3ceba8317452d20ac1b680c156e.zip | |
add test for [ruby-dev:24460]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
| -rw-r--r-- | test/ruby/test_io.rb | 11 |
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 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 |
