mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
5
NEWS
5
NEWS
|
@ -28,6 +28,11 @@ with all sufficient information, see the ChangeLog file or Redmine
|
|||
|
||||
* Thread#fetch [Feature #13009]
|
||||
|
||||
* String
|
||||
|
||||
* String#-@ deduplicates unfrozen strings. Already-frozen
|
||||
strings remain unchanged for compatibility. [Feature #13077]
|
||||
|
||||
=== Stdlib updates (outstanding ones only)
|
||||
|
||||
=== Compatibility issues (excluding feature bug fixes)
|
||||
|
|
|
@ -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
Reference in a new issue