File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change 44class TestPsychRactor < Test ::Unit ::TestCase
55 def test_ractor_round_trip
66 assert_ractor ( <<~RUBY , require_relative : 'helper' )
7- class Ractor
8- alias value take
9- end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
10-
117 obj = {foo: [42]}
128 obj2 = Ractor.new(obj) do |obj|
139 Psych.unsafe_load(Psych.dump(obj))
@@ -32,10 +28,6 @@ def test_ractor_config
3228 # Test is to make sure it works, even though usage is probably very low.
3329 # The methods are not documented and might be deprecated one day
3430 assert_ractor ( <<~RUBY , require_relative : 'helper' )
35- class Ractor
36- alias value take
37- end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
38-
3931 r = Ractor.new do
4032 Psych.add_builtin_type 'omap' do |type, val|
4133 val * 2
@@ -49,10 +41,6 @@ class Ractor
4941
5042 def test_ractor_constants
5143 assert_ractor ( <<~RUBY , require_relative : 'helper' )
52- class Ractor
53- alias value take
54- end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
55-
5644 r = Ractor.new do
5745 Psych.libyaml_version.join('.') == Psych::LIBYAML_VERSION
5846 end.value
You can’t perform that action at this time.
0 commit comments