mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e04167bc32
commit
f7d130f473
1 changed files with 4 additions and 4 deletions
|
@ -486,13 +486,13 @@ class TestReadline < Test::Unit::TestCase
|
|||
|
||||
with_temp_stdio do |stdin, stdout|
|
||||
replace_stdio(stdin.path, stdout.path) do
|
||||
Readline.completion_proc = -> (text) do
|
||||
Readline.completion_proc = ->(text) do
|
||||
passed_text = text
|
||||
['completion']
|
||||
end
|
||||
Readline.completer_quote_characters = '\'"'
|
||||
Readline.completer_word_break_characters = ' '
|
||||
Readline.quoting_detection_proc = -> (text, index) do
|
||||
Readline.quoting_detection_proc = ->(text, index) do
|
||||
index > 0 && text[index-1] == '\\'
|
||||
end
|
||||
|
||||
|
@ -524,13 +524,13 @@ class TestReadline < Test::Unit::TestCase
|
|||
|
||||
with_temp_stdio do |stdin, stdout|
|
||||
replace_stdio(stdin.path, stdout.path) do
|
||||
Readline.completion_proc = -> (text) do
|
||||
Readline.completion_proc = ->(text) do
|
||||
passed_text = text
|
||||
['completion']
|
||||
end
|
||||
Readline.completer_quote_characters = '\'"'
|
||||
Readline.completer_word_break_characters = ' '
|
||||
Readline.quoting_detection_proc = -> (text, index) do
|
||||
Readline.quoting_detection_proc = ->(text, index) do
|
||||
escaped = index > 0 && text[index-1] == '\\'
|
||||
escaped_char_indexes << index if escaped
|
||||
escaped
|
||||
|
|
Loading…
Reference in a new issue