mirror of
https://github.com/ruby/ruby.git
synced 2025-08-28 15:36:16 +02:00
NEWS: document String#-@ change
* test/ruby/test_string.rb (test_uplus_minus): test deduplication [ruby-core:79747] [Feature #13077] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4edac7f5d0
commit
15ef28a991
2 changed files with 7 additions and 0 deletions
|
@ -2537,6 +2537,8 @@ CODE
|
|||
|
||||
assert_not_equal(str.object_id, (+str).object_id)
|
||||
assert_equal(str.object_id, (-str).object_id)
|
||||
bar = %w(b a r).join('')
|
||||
assert_same(str, -bar, "uminus deduplicates [Feature #13077]")
|
||||
end
|
||||
|
||||
def test_ord
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue