diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/-ext-/string/test_capacity.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/-ext-/string/test_capacity.rb b/test/-ext-/string/test_capacity.rb index df59e76778..f5830a033b 100644 --- a/test/-ext-/string/test_capacity.rb +++ b/test/-ext-/string/test_capacity.rb @@ -14,7 +14,9 @@ class Test_StringCapacity < Test::Unit::TestCase end def test_capacity_shared - assert_equal 0, capa(:abcdefghijklmnopqrstuvwxyz.to_s) + str = :abcdefghijklmnopqrstuvwxyz.to_s.dup + assert Bug::String.shared_string? str + assert_equal 0, capa(str) end def test_capacity_normal |