diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-07 16:41:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-03-07 17:04:37 +0900 |
commit | 108f7536b3fe9a05343a6c36541c5d96153c7f1d (patch) | |
tree | f15cab4ce01ca1cf7ad6a069c72dac55f3238889 /test/ruby/test_process.rb | |
parent | 65aa68b009ef088ddb38fc58159bff9183dfe473 (diff) |
Removed unnecessary `chomp`
As `String#split` with the default argument drops trailing newline
as a separator, preceding `String#chomp` is futile.
Diffstat (limited to 'test/ruby/test_process.rb')
-rw-r--r-- | test/ruby/test_process.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb index 53599a6318..a5eb0a5844 100644 --- a/test/ruby/test_process.rb +++ b/test/ruby/test_process.rb @@ -2381,7 +2381,7 @@ EOS end w.close assert_equal "exec failed\n", r.gets - vals = r.gets.chomp.split.map!(&:to_i) + vals = r.gets.split.map!(&:to_i) assert_operator vals[0], :>, vals[1], vals.inspect _, status = Process.waitpid2(pid) end |