mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_shared_replace): make str noembed after free.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
719841ca37
commit
9595af4ad5
4 changed files with 21 additions and 2 deletions
|
@ -1091,6 +1091,9 @@ class TestString < Test::Unit::TestCase
|
|||
a = S("**")
|
||||
assert_equal(S("*+"), a.succ!)
|
||||
assert_equal(S("*+"), a)
|
||||
|
||||
assert_equal("aaaaaaaaaaaa", "zzzzzzzzzzz".succ!)
|
||||
assert_equal("aaaaaaaaaaaaaaaaaaaaaaaa", "zzzzzzzzzzzzzzzzzzzzzzz".succ!)
|
||||
end
|
||||
|
||||
def test_sum
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue