diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-06-03 15:43:32 +0900 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-06-03 06:46:56 +0000 |
| commit | 52d85c0efb8871ed2e29738c8edf60cc0fa034c3 (patch) | |
| tree | c1e6136840a9b8ae93b50085e077e97d3c747524 /test | |
| parent | 6f4eaa100f3b1afd0edf99a7f7fa09a17732ff54 (diff) | |
[ruby/date] Alias value to take in old Ruby
https://github.com/ruby/date/commit/1ce29a26dd
Diffstat (limited to 'test')
| -rw-r--r-- | test/date/test_date_ractor.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/date/test_date_ractor.rb b/test/date/test_date_ractor.rb index 91ea38bb93..1bcd913389 100644 --- a/test/date/test_date_ractor.rb +++ b/test/date/test_date_ractor.rb @@ -5,6 +5,10 @@ require 'date' class TestDateParseRactor < Test::Unit::TestCase def code(klass = Date, share: false) <<~RUBY.gsub('Date', klass.name) + class Ractor + alias value take + end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders + share = #{share} d = Date.parse('Aug 23:55') Ractor.make_shareable(d) if share |
