diff options
author | Jeremy Evans <[email protected]> | 2022-07-21 08:29:50 -0700 |
---|---|---|
committer | Jeremy Evans <[email protected]> | 2022-07-21 08:29:50 -0700 |
commit | 203f179ce7d1bde0befb8d12148aa392ad45ac56 (patch) | |
tree | b36cdf25d9eadf4547df3f6ab5b8f38ff8731595 /test/ruby/test_io.rb | |
parent | 12ac8971a394118a57640299f654e46e763093fa (diff) |
Revert "Do not chomp trailing line separator IO#each with nil separator and chomp"
This reverts commit 04f86ad0b5d2fe4711ff300d855228a6aed55f33.
This is causing CI issues, reverting for now.
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index b8530e7400..0f42d8e164 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -312,7 +312,7 @@ class TestIO < Test::Unit::TestCase w.print "a\n\nb\n\n" w.close end, proc do |r| - assert_equal("a\n\nb\n\n", r.gets(nil, chomp: true), "[Bug #18770]") + assert_equal "a\n\nb\n", r.gets(nil, chomp: true) assert_nil r.gets("") r.close end) @@ -1894,20 +1894,6 @@ class TestIO < Test::Unit::TestCase assert_equal("baz\n", e.next) assert_raise(StopIteration) { e.next } end) - - pipe(proc do |w| - w.write "foo\n" - w.close - end, proc do |r| - assert_equal(["foo\n"], r.each_line(nil, chomp: true).to_a, "[Bug #18770]") - end) - - pipe(proc do |w| - w.write "foo\n" - w.close - end, proc do |r| - assert_equal(["fo", "o\n"], r.each_line(nil, 2, chomp: true).to_a, "[Bug #18770]") - end) end def test_each_byte2 |