[前][次][番号順一覧][スレッド一覧]

ruby-changes:60069

From: Yusuke <ko1@a...>
Date: Fri, 14 Feb 2020 00:08:10 +0900 (JST)
Subject: [ruby-changes:60069] fad98c6c61 (master): test/irb/test_completion.rb: suppress a warning: unused literal ignored

https://git.ruby-lang.org/ruby.git/commit/?id=fad98c6c61

From fad98c6c61688d9ca7772bbfdef5a9d832529f16 Mon Sep 17 00:00:00 2001
From: Yusuke Endoh <mame@r...>
Date: Fri, 14 Feb 2020 00:07:28 +0900
Subject: test/irb/test_completion.rb: suppress a warning: unused literal
 ignored


diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
index f302499..d4072fe 100644
--- a/test/irb/test_completion.rb
+++ b/test/irb/test_completion.rb
@@ -27,7 +27,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_completion.rb#L27
     end
 
     def test_complete_symbol
-      :aiueo
+      _ = :aiueo
       assert_include(IRB::InputCompletor.retrieve_completion_data(":a", bind: binding), ":aiueo")
       assert_empty(IRB::InputCompletor.retrieve_completion_data(":irb_unknown_symbol_abcdefg", bind: binding))
     end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]