From f7d130f473a291ee1014c763ab4628ac214fd322 Mon Sep 17 00:00:00 2001 From: shugo Date: Wed, 30 Nov 2016 01:22:05 +0000 Subject: [PATCH] Supress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56939 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/readline/test_readline.rb | 8 ++++---- 1 file 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