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

ruby-changes:61168

From: Nobuyoshi <ko1@a...>
Date: Sat, 9 May 2020 20:15:14 +0900 (JST)
Subject: [ruby-changes:61168] 883214f8e9 (master): Use %w instead of %i not to create unused IDs

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

From 883214f8e94cdc4ffe6d572f5a67b16c9d62676f Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 9 May 2020 20:13:30 +0900
Subject: Use %w instead of %i not to create unused IDs


diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
index fe57225..66721b1 100644
--- a/test/io/console/test_io_console.rb
+++ b/test/io/console/test_io_console.rb
@@ -31,7 +31,7 @@ class TestIO_Console < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/io/console/test_io_console.rb#L31
   end
 
   def test_failed_path
-    exceptions = %i[ENODEV ENOTTY EBADF ENXIO].map {|e|
+    exceptions = %w[ENODEV ENOTTY EBADF ENXIO].map {|e|
       Errno.const_get(e) if Errno.const_defined?(e)
     }
     exceptions.compact!
-- 
cgit v0.10.2


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

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