[ruby/io-console] Alias value or join to take in old Ruby
https://github.com/ruby/io-console/commit/7106d05219
This commit is contained in:
parent
17401792fa
commit
c6c51569cb
@ -8,6 +8,10 @@ class TestIOConsoleInRactor < Test::Unit::TestCase
|
|||||||
path = $".find {|path| path.end_with?(ext)}
|
path = $".find {|path| path.end_with?(ext)}
|
||||||
assert_in_out_err(%W[-r#{path}], "#{<<~"begin;"}\n#{<<~'end;'}", ["true"], [])
|
assert_in_out_err(%W[-r#{path}], "#{<<~"begin;"}\n#{<<~'end;'}", ["true"], [])
|
||||||
begin;
|
begin;
|
||||||
|
class Ractor
|
||||||
|
alias value take
|
||||||
|
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||||
|
|
||||||
$VERBOSE = nil
|
$VERBOSE = nil
|
||||||
r = Ractor.new do
|
r = Ractor.new do
|
||||||
$stdout.console_mode
|
$stdout.console_mode
|
||||||
@ -23,6 +27,10 @@ class TestIOConsoleInRactor < Test::Unit::TestCase
|
|||||||
|
|
||||||
assert_in_out_err(%W[-r#{path}], "#{<<~"begin;"}\n#{<<~'end;'}", ["true"], [])
|
assert_in_out_err(%W[-r#{path}], "#{<<~"begin;"}\n#{<<~'end;'}", ["true"], [])
|
||||||
begin;
|
begin;
|
||||||
|
class Ractor
|
||||||
|
alias value take
|
||||||
|
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
|
||||||
|
|
||||||
console = IO.console
|
console = IO.console
|
||||||
$VERBOSE = nil
|
$VERBOSE = nil
|
||||||
r = Ractor.new do
|
r = Ractor.new do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user