diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-25 03:06:12 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-25 03:06:12 +0000 |
| commit | 34908ccb4746b447fc5b61bdf9a93f7086cbe1f8 (patch) | |
| tree | 541379cc6028304fe26a7fb97cd2b81d1fe61992 /test/ruby | |
| parent | fd6def0f9a3232a7eaa2a0610744f90c7f6ae64c (diff) | |
| download | ruby-34908ccb4746b447fc5b61bdf9a93f7086cbe1f8.tar.gz ruby-34908ccb4746b447fc5b61bdf9a93f7086cbe1f8.tar.xz ruby-34908ccb4746b447fc5b61bdf9a93f7086cbe1f8.zip | |
* io.c (rb_io_getline_1): enables limit even if rs is given.
[ruby-core:22434]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_io.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 0f448dbf3..678a74a1d 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -102,8 +102,9 @@ class TestIO < Test::Unit::TestCase def test_gets_limit_extra_arg with_pipe {|r, w| r, w = IO.pipe - w << "0123456789" + w << "0123456789\n0123456789" w.close + assert_equal("0123456789\n0", r.gets(nil, 12)) assert_raise(TypeError) { r.gets(3,nil) } } end |
