mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Normalization test iff UTF-8 file system
* test/ruby/test_file_exhaustive.rb (test_expand_path_compose): normalization is meaningless unless file system encoding is UTF. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2158dd55e
commit
b569971422
1 changed files with 1 additions and 2 deletions
|
@ -1094,8 +1094,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
|||
assert_equal('z:/bar/foo', File.expand_path('z:foo', '/bar'), bug10858)
|
||||
end if DRIVE
|
||||
|
||||
case RUBY_PLATFORM
|
||||
when /darwin/
|
||||
if /darwin/ =~ RUBY_PLATFORM and Encoding.find("filesystem") == Encoding::UTF_8
|
||||
def test_expand_path_compose
|
||||
pp = Object.new.extend(Test::Unit::Assertions)
|
||||
def pp.mu_pp(str) #:nodoc:
|
||||
|
|
Loading…
Reference in a new issue