ruby-changes:28828
From: kou <ko1@a...>
Date: Tue, 21 May 2013 21:50:31 +0900 (JST)
Subject: [ruby-changes:28828] kou:r40880 (trunk): * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose):
kou 2013-05-21 21:50:21 +0900 (Tue, 21 May 2013) New Revision: 40880 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40880 Log: * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose): Use #each instead of #map just for iteration. Modified files: trunk/ChangeLog trunk/test/ruby/test_dir_m17n.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 40879) +++ ChangeLog (revision 40880) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue May 21 21:48:44 2013 Kouhei Sutou <kou@c...> + + * test/ruby/test_dir_m17n.rb (TestDir_M17N#test_entries_compose): + Use #each instead of #map just for iteration. + Tue May 21 19:57:22 2013 Akinori MUSHA <knu@i...> * ext/digest/lib/digest.rb (Digest::Class.file): Take optional Index: test/ruby/test_dir_m17n.rb =================================================================== --- test/ruby/test_dir_m17n.rb (revision 40879) +++ test/ruby/test_dir_m17n.rb (revision 40880) @@ -323,7 +323,7 @@ class TestDir_M17N < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir_m17n.rb#L323 else enc = Encoding.find("filesystem") enc = Encoding::ASCII_8BIT if enc == Encoding::US_ASCII - orig.map {|o| o.force_encoding(enc) } + orig.each {|o| o.force_encoding(enc) } end ents = Dir.entries(".", opts).reject {|n| /\A\./ =~ n} ents.sort! -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/