1
0
Fork 0
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:
akr 2007-12-13 11:52:15 +00:00
parent 719841ca37
commit 9595af4ad5
4 changed files with 21 additions and 2 deletions

View file

@ -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