summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-13 14:03:25 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-14 19:19:16 +0900
commit89e489d51d164cf22bce3a7580e5695da22fb347 (patch)
tree4edd7f5af1ad15e6c76fce3249a3c5a4078c68be /test/ruby
parent7060aeedbd69c0888379cbf91f0bb2208bc59308 (diff)
Make shareable_constant_value tri-state
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3681
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_parse.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_parse.rb b/test/ruby/test_parse.rb
index 8a644ad6a8..61551a2c96 100644
--- a/test/ruby/test_parse.rb
+++ b/test/ruby/test_parse.rb
@@ -1183,9 +1183,9 @@ x = __ENCODING__
end
a, b, c = Class.new.class_eval("#{<<~"begin;"}\n#{<<~'end;'}")
begin;
- # shareable_constant_value: true
+ # shareable_constant_value: experimental_everything
A = [[1]]
- # shareable_constant_value: false
+ # shareable_constant_value: none
B = [[2]]
[A, B]
@@ -1196,9 +1196,9 @@ x = __ENCODING__
assert_send([Ractor, :shareable?, a[0]])
a, b = Class.new.class_eval("#{<<~"begin;"}\n#{<<~'end;'}")
begin;
- # shareable_constant_value: false
+ # shareable_constant_value: none
class X
- # shareable_constant_value: true
+ # shareable_constant_value: experimental_everything
A = [[1]]
end
B = []