1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2012-07-24 03:32:55 +00:00
parent 3a4a494e02
commit 989a6cb176
2 changed files with 5 additions and 1 deletions

View file

@ -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)