diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-06-03 16:44:03 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-06-03 18:13:15 +0900 |
| commit | 267d8a04b369bd40ba229ff17995d1c09c917afa (patch) | |
| tree | 0f5099260ade2310b01b3c3f5ee8660b94e404a9 /test | |
| parent | 8ab4935ddff38da632624945db97c251abd103d3 (diff) | |
[ruby/strscan] Support `Ractor#value`
(https://github.com/ruby/strscan/pull/157)
This is same as https://github.com/ruby/stringio/pull/134
---------
https://github.com/ruby/strscan/commit/141f9cf9b6
Co-authored-by: Koichi Sasada <ko1@atdot.net>
Diffstat (limited to 'test')
| -rw-r--r-- | test/strscan/test_ractor.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/strscan/test_ractor.rb b/test/strscan/test_ractor.rb index 71e8111711..a13fd8fd13 100644 --- a/test/strscan/test_ractor.rb +++ b/test/strscan/test_ractor.rb @@ -8,6 +8,10 @@ class TestStringScannerRactor < Test::Unit::TestCase def test_ractor assert_in_out_err([], <<-"end;", ["stra", " ", "strb", " ", "strc"], []) + class Ractor + alias value take unless method_defined? :value # compat with Ruby 3.4 and olders + end + require "strscan" $VERBOSE = nil r = Ractor.new do |
