summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNARUSE, Yui <naruse@airemix.jp>2019-11-05 17:30:54 +0900
committerNARUSE, Yui <naruse@airemix.jp>2019-11-05 17:30:54 +0900
commitbea322a352d820007dd4e6cab88af5de01854736 (patch)
tree64cbb4819408cab7e7afe1961eed1c4308e405c0 /test
parent853d91a04a4d133fc90b35c90570dc1c656a7922 (diff)
Revert "[EXPERIMENTAL] Make Symbol#to_s return a frozen String [Feature #16150]"
This reverts commit 6ffc045a817fbdf04a6945d3c260b55b0fa1fd1e.
Diffstat (limited to 'test')
-rw-r--r--test/-ext-/string/test_capacity.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/-ext-/string/test_capacity.rb b/test/-ext-/string/test_capacity.rb
index f5830a033b..df59e76778 100644
--- a/test/-ext-/string/test_capacity.rb
+++ b/test/-ext-/string/test_capacity.rb
@@ -14,9 +14,7 @@ class Test_StringCapacity < Test::Unit::TestCase
end
def test_capacity_shared
- str = :abcdefghijklmnopqrstuvwxyz.to_s.dup
- assert Bug::String.shared_string? str
- assert_equal 0, capa(str)
+ assert_equal 0, capa(:abcdefghijklmnopqrstuvwxyz.to_s)
end
def test_capacity_normal