summaryrefslogtreecommitdiff
path: root/test/readline
diff options
context:
space:
mode:
authorshugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-30 01:22:05 +0000
committershugo <shugo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-30 01:22:05 +0000
commitf7d130f473a291ee1014c763ab4628ac214fd322 (patch)
treed1bf5a81b6249d7442fae5ae83773215107ddaf8 /test/readline
parente04167bc32a1a085f11c12ff44a124d287b22b70 (diff)
Supress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/readline')
-rw-r--r--test/readline/test_readline.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/readline/test_readline.rb b/test/readline/test_readline.rb
index 8b98b62414..f50eafddf5 100644
--- a/test/readline/test_readline.rb
+++ b/test/readline/test_readline.rb
@@ -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