From 989a6cb176522792198344fd041425e5891b2510 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 24 Jul 2012 03:32:55 +0000 Subject: [PATCH] * test/ruby/test_dir_m17n.rb: sorry, typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ test/ruby/test_dir_m17n.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 410eb55ab0..d06d243f52 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 24 12:32:18 2012 NAKAMURA Usaku + + * test/ruby/test_dir_m17n.rb: sorry, typo. + Tue Jul 24 12:13:26 2012 NAKAMURA Usaku * test/ruby/test_dir_m17n.rb: refactoring. RE should be in the left side diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb index d9ff711435..1644a6de65 100644 --- a/test/ruby/test_dir_m17n.rb +++ b/test/ruby/test_dir_m17n.rb @@ -201,7 +201,7 @@ class TestDir_M17N < Test::Unit::TestCase ents = Dir.entries(".", opts) p ents result = ents.include?(filename) || - (/darwin/ =~ RUBY_PLATFORM =~ /darwin/ && ents.include?("%A4%A2".force_encoding("ASCII-8BIT"))) || + (/darwin/ =~ RUBY_PLATFORM && ents.include?("%A4%A2".force_encoding("ASCII-8BIT"))) || (/mswin|mingw/ =~ RUBY_PLATFORM && ents.include?(win_expected_filename.force_encoding("ASCII-8BIT"))) if !result && /mswin|mingw/ =~ RUBY_PLATFORM exit Dir.entries(".", {:encoding => Encoding.find("filesystem")}).include?(win_expected_filename)