diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2023-01-20 12:24:24 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2023-01-20 12:24:24 +0900 |
commit | 373e62248c9dceb660e95f1cf05fa2a4a469cd64 (patch) | |
tree | aea508abdd61db417f617163763894c990b0a1a2 /test | |
parent | 6a8fcb50210f8414d76968298576e39b9fa82562 (diff) |
merge revision(s) f7b72462aa27716370c6bea1f2c240983aca9a55: [Backport #19356]
String#bytesplice should return self
In Feature #19314, we concluded that the return value of String#bytesplice
should be changed from the source string to the receiver, because the source
string is useless and confusing when extra arguments are added.
This change should be included in Ruby 3.2.1.
---
string.c | 4 ++--
test/ruby/test_string.rb | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_string.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb index 1ece47b18a..615ede2234 100644 --- a/test/ruby/test_string.rb +++ b/test/ruby/test_string.rb @@ -3468,7 +3468,7 @@ CODE private def assert_bytesplice_result(expected, s, *args) - assert_equal(args.last, s.send(:bytesplice, *args)) + assert_equal(expected, s.send(:bytesplice, *args)) assert_equal(expected, s) end |