2009-11-15 11:24:45 -05:00
|
|
|
require 'test/unit'
|
|
|
|
require 'tmpdir'
|
|
|
|
require_relative 'envutil'
|
|
|
|
|
|
|
|
class TestDir_M17N < Test::Unit::TestCase
|
|
|
|
def with_tmpdir
|
|
|
|
Dir.mktmpdir {|dir|
|
|
|
|
Dir.chdir(dir) {
|
|
|
|
yield dir
|
|
|
|
}
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2012-07-23 19:32:29 -04:00
|
|
|
def create_and_check_raw_file_name(code, encoding)
|
|
|
|
with_tmpdir { |dir|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(["-E#{encoding}"], <<-EOS, :chdir=>dir)
|
2012-07-23 19:32:29 -04:00
|
|
|
filename = #{code}.chr('UTF-8').force_encoding("#{encoding}")
|
|
|
|
File.open(filename, "w") {}
|
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
|
|
|
EOS
|
2012-07-23 19:32:29 -04:00
|
|
|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EASCII-8BIT], <<-EOS, :chdir=>dir)
|
2012-07-23 19:32:29 -04:00
|
|
|
filename = #{code}.chr('UTF-8').force_encoding("ASCII-8BIT")
|
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
|
|
|
expected_filename = #{code}.chr('UTF-8').encode(Encoding.find("filesystem")) rescue expected_filename = "?"
|
|
|
|
expected_filename = expected_filename.force_encoding("ASCII-8BIT")
|
2013-05-20 14:10:34 -04:00
|
|
|
if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
case
|
|
|
|
when ents.include?(filename)
|
|
|
|
when ents.include?(expected_filename)
|
|
|
|
filename = expected_filename
|
|
|
|
else
|
|
|
|
ents = Dir.entries(".", {:encoding => Encoding.find("filesystem")})
|
|
|
|
filename = expected_filename
|
|
|
|
end
|
2012-07-23 19:32:29 -04:00
|
|
|
end
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
|
|
|
EOS
|
2012-07-23 19:32:29 -04:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2009-11-16 08:45:59 -05:00
|
|
|
## UTF-8 default_external, no default_internal
|
|
|
|
|
|
|
|
def test_filename_extutf8
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename = "\u3042"
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_filename_extutf8_invalid
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EASCII-8BIT], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename = "\xff".force_encoding("ASCII-8BIT") # invalid byte sequence as UTF-8
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
filename = "%FF" if /darwin/ =~ RUBY_PLATFORM && ents.include?("%FF")
|
|
|
|
assert_include(ents, filename)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename = "\xff".force_encoding("UTF-8") # invalid byte sequence as UTF-8
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
filename = "%FF" if /darwin/ =~ RUBY_PLATFORM && ents.include?("%FF")
|
|
|
|
assert_include(ents, filename)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
|
|
|
}
|
2011-03-24 22:50:17 -04:00
|
|
|
end unless /mswin|mingw/ =~ RUBY_PLATFORM
|
2009-11-16 08:45:59 -05:00
|
|
|
|
2009-11-18 08:02:28 -05:00
|
|
|
def test_filename_as_bytes_extutf8
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8], <<-'EOS', :chdir=>d)
|
2009-11-18 08:02:28 -05:00
|
|
|
filename = "\xc2\xa1".force_encoding("utf-8")
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
2009-11-18 08:02:28 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8], <<-'EOS', :chdir=>d)
|
2013-08-13 20:10:58 -04:00
|
|
|
if /mswin|mingw|darwin/ =~ RUBY_PLATFORM
|
2010-05-16 22:07:00 -04:00
|
|
|
filename = "\x8f\xa2\xc2".force_encoding("euc-jp")
|
|
|
|
else
|
|
|
|
filename = "\xc2\xa1".force_encoding("euc-jp")
|
|
|
|
end
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_nothing_raised(Errno::ENOENT) do
|
2009-11-18 08:02:28 -05:00
|
|
|
open(filename) {}
|
|
|
|
end
|
|
|
|
EOS
|
2011-03-24 22:50:17 -04:00
|
|
|
# no meaning test on windows
|
2013-08-13 20:10:58 -04:00
|
|
|
unless /mswin|mingw|darwin/ =~ RUBY_PLATFORM
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%W[-EUTF-8], <<-'EOS', :chdir=>d)
|
2011-03-24 22:50:17 -04:00
|
|
|
filename1 = "\xc2\xa1".force_encoding("utf-8")
|
|
|
|
filename2 = "\xc2\xa1".force_encoding("euc-jp")
|
|
|
|
filename3 = filename1.encode("euc-jp")
|
|
|
|
filename4 = filename2.encode("utf-8")
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_file.stat(filename1)
|
|
|
|
assert_file.stat(filename2)
|
|
|
|
assert_file.not_exist?(filename3)
|
|
|
|
assert_file.not_exist?(filename4)
|
2011-03-24 22:50:17 -04:00
|
|
|
EOS
|
|
|
|
end
|
2009-11-18 08:02:28 -05:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2009-11-16 08:45:59 -05:00
|
|
|
## UTF-8 default_external, EUC-JP default_internal
|
|
|
|
|
|
|
|
def test_filename_extutf8_inteucjp_representable
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename = "\u3042"
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8:EUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename = "\xA4\xA2".force_encoding("euc-jp")
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8:EUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename = "\xA4\xA2".force_encoding("euc-jp")
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_nothing_raised(Errno::ENOENT) do
|
2009-11-16 08:45:59 -05:00
|
|
|
open(filename) {}
|
|
|
|
end
|
|
|
|
EOS
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_filename_extutf8_inteucjp_unrepresentable
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename1 = "\u2661" # WHITE HEART SUIT which is not representable in EUC-JP
|
|
|
|
filename2 = "\u3042" # HIRAGANA LETTER A which is representable in EUC-JP
|
|
|
|
File.open(filename1, "w") {}
|
|
|
|
File.open(filename2, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename1)
|
|
|
|
assert_include(ents, filename2)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8:EUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename1 = "\u2661" # WHITE HEART SUIT which is not representable in EUC-JP
|
|
|
|
filename2 = "\xA4\xA2".force_encoding("euc-jp") # HIRAGANA LETTER A in EUC-JP
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename1)
|
|
|
|
assert_include(ents, filename2)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EUTF-8:EUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-16 08:45:59 -05:00
|
|
|
filename1 = "\u2661" # WHITE HEART SUIT which is not representable in EUC-JP
|
|
|
|
filename2 = "\u3042" # HIRAGANA LETTER A which is representable in EUC-JP
|
|
|
|
filename3 = "\xA4\xA2".force_encoding("euc-jp") # HIRAGANA LETTER A in EUC-JP
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_file.stat(filename1)
|
|
|
|
assert_file.stat(filename2)
|
|
|
|
assert_file.stat(filename3)
|
2009-11-16 08:45:59 -05:00
|
|
|
EOS
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
## others
|
|
|
|
|
2009-11-15 11:24:45 -05:00
|
|
|
def test_filename_bytes_euc_jp
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EEUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-15 11:24:45 -05:00
|
|
|
filename = "\xA4\xA2".force_encoding("euc-jp")
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2009-11-15 11:24:45 -05:00
|
|
|
ents.each {|e| e.force_encoding("ASCII-8BIT") }
|
2013-08-13 20:10:58 -04:00
|
|
|
if /darwin/ =~ RUBY_PLATFORM
|
|
|
|
filename = filename.encode("utf-8")
|
2013-05-20 14:10:34 -04:00
|
|
|
end
|
|
|
|
assert_include(ents, filename.force_encoding("ASCII-8BIT"))
|
2009-11-15 11:24:45 -05:00
|
|
|
EOS
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_filename_euc_jp
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EEUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-15 11:24:45 -05:00
|
|
|
filename = "\xA4\xA2".force_encoding("euc-jp")
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-08-13 20:10:58 -04:00
|
|
|
if /darwin/ =~ RUBY_PLATFORM
|
|
|
|
filename = filename.encode("utf-8").force_encoding("euc-jp")
|
2013-05-20 14:10:34 -04:00
|
|
|
end
|
|
|
|
assert_include(ents, filename)
|
2009-11-15 11:24:45 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EASCII-8BIT], <<-'EOS', :chdir=>d)
|
2012-07-23 19:32:29 -04:00
|
|
|
filename = "\xA4\xA2".force_encoding('ASCII-8BIT')
|
2012-07-24 05:57:59 -04:00
|
|
|
win_expected_filename = filename.encode(Encoding.find("filesystem"), "euc-jp") rescue "?"
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-05-20 14:10:34 -04:00
|
|
|
unless ents.include?(filename)
|
|
|
|
case RUBY_PLATFORM
|
|
|
|
when /darwin/
|
2013-08-13 20:10:58 -04:00
|
|
|
filename = filename.encode("utf-8", "euc-jp").b
|
2013-05-20 14:10:34 -04:00
|
|
|
when /mswin|mingw/
|
|
|
|
if ents.include?(win_expected_filename.dup.force_encoding("ASCII-8BIT"))
|
|
|
|
ents = Dir.entries(".", {:encoding => Encoding.find("filesystem")})
|
|
|
|
filename = win_expected_filename
|
|
|
|
end
|
|
|
|
end
|
2012-07-23 19:32:29 -04:00
|
|
|
end
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_include(ents, filename)
|
2009-11-15 12:14:43 -05:00
|
|
|
EOS
|
2009-11-15 11:24:45 -05:00
|
|
|
}
|
|
|
|
end
|
|
|
|
|
2012-07-23 19:32:29 -04:00
|
|
|
def test_filename_utf8_raw_jp_name
|
|
|
|
create_and_check_raw_file_name(0x3042, "UTF-8")
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_filename_utf8_raw_windows_1251_name
|
|
|
|
create_and_check_raw_file_name(0x0424, "UTF-8")
|
|
|
|
end
|
|
|
|
|
|
|
|
def test_filename_utf8_raw_windows_1252_name
|
2012-07-24 05:36:14 -04:00
|
|
|
create_and_check_raw_file_name(0x00c6, "UTF-8")
|
2009-11-15 12:11:54 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_filename_ext_euc_jp_and_int_utf_8
|
|
|
|
with_tmpdir {|d|
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EEUC-JP], <<-'EOS', :chdir=>d)
|
2009-11-15 12:11:54 -05:00
|
|
|
filename = "\xA4\xA2".force_encoding("euc-jp")
|
|
|
|
File.open(filename, "w") {}
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-08-13 20:10:58 -04:00
|
|
|
if /darwin/ =~ RUBY_PLATFORM
|
|
|
|
filename = filename.encode("utf-8", "euc-jp").force_encoding("euc-jp")
|
2013-05-20 14:10:34 -04:00
|
|
|
end
|
|
|
|
assert_include(ents, filename)
|
2009-11-15 12:11:54 -05:00
|
|
|
EOS
|
2013-05-20 14:10:34 -04:00
|
|
|
assert_separately(%w[-EEUC-JP:UTF-8], <<-'EOS', :chdir=>d)
|
2009-11-15 12:58:14 -05:00
|
|
|
filename = "\u3042"
|
2010-05-16 22:07:00 -04:00
|
|
|
opts = {:encoding => Encoding.default_external} if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
ents = Dir.entries(".", opts)
|
2013-08-13 20:10:58 -04:00
|
|
|
if /darwin/ =~ RUBY_PLATFORM
|
|
|
|
filename = filename.force_encoding("euc-jp")
|
2013-05-20 14:10:34 -04:00
|
|
|
end
|
|
|
|
assert_include(ents, filename)
|
2009-11-15 12:58:14 -05:00
|
|
|
EOS
|
|
|
|
}
|
|
|
|
end
|
2012-02-24 17:53:42 -05:00
|
|
|
|
|
|
|
def test_error_nonascii
|
|
|
|
bug6071 = '[ruby-dev:45279]'
|
|
|
|
paths = ["\u{3042}".encode("sjis"), "\u{ff}".encode("iso-8859-1")]
|
|
|
|
encs = with_tmpdir {
|
|
|
|
paths.map {|path|
|
|
|
|
Dir.open(path) rescue $!.message.encoding
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assert_equal(paths.map(&:encoding), encs, bug6071)
|
|
|
|
end
|
2009-11-15 11:24:45 -05:00
|
|
|
|
2012-02-24 17:53:51 -05:00
|
|
|
def test_inspect_nonascii
|
|
|
|
bug6072 = '[ruby-dev:45280]'
|
|
|
|
paths = ["\u{3042}".encode("sjis"), "\u{ff}".encode("iso-8859-1")]
|
|
|
|
encs = with_tmpdir {
|
|
|
|
paths.map {|path|
|
|
|
|
Dir.mkdir(path)
|
|
|
|
Dir.open(path) {|d| d.inspect.encoding}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
assert_equal(paths.map(&:encoding), encs, bug6072)
|
|
|
|
end
|
2012-09-04 23:03:24 -04:00
|
|
|
|
|
|
|
def test_glob_incompatible
|
|
|
|
d = "\u{3042}\u{3044}".encode("utf-16le")
|
|
|
|
assert_raise(Encoding::CompatibilityError) {Dir.glob(d)}
|
|
|
|
m = Class.new {define_method(:to_path) {d}}
|
|
|
|
assert_raise(Encoding::CompatibilityError) {Dir.glob(m.new)}
|
|
|
|
end
|
2013-03-19 04:06:53 -04:00
|
|
|
|
|
|
|
def test_glob_compose
|
|
|
|
bug7267 = '[ruby-core:48745] [Bug #7267]'
|
|
|
|
|
|
|
|
pp = Object.new.extend(Test::Unit::Assertions)
|
|
|
|
def pp.mu_pp(str) #:nodoc:
|
|
|
|
str.dump
|
|
|
|
end
|
|
|
|
|
|
|
|
with_tmpdir {|d|
|
|
|
|
orig = %W"d\u{e9}tente x\u{304c 304e 3050 3052 3054}"
|
|
|
|
orig.each {|n| open(n, "w") {}}
|
|
|
|
orig.each do |o|
|
|
|
|
n = Dir.glob("#{o[0..0]}*")[0]
|
|
|
|
pp.assert_equal(o, n, bug7267)
|
|
|
|
end
|
|
|
|
}
|
|
|
|
end
|
2013-05-20 14:11:23 -04:00
|
|
|
|
|
|
|
def test_entries_compose
|
|
|
|
bug7267 = '[ruby-core:48745] [Bug #7267]'
|
|
|
|
|
|
|
|
pp = Object.new.extend(Test::Unit::Assertions)
|
|
|
|
def pp.mu_pp(ary) #:nodoc:
|
|
|
|
'[' << ary.map {|str| "#{str.dump}(#{str.encoding})"}.join(', ') << ']'
|
|
|
|
end
|
|
|
|
|
|
|
|
with_tmpdir {|d|
|
|
|
|
orig = %W"d\u{e9}tente x\u{304c 304e 3050 3052 3054}"
|
|
|
|
orig.each {|n| open(n, "w") {}}
|
|
|
|
if /mswin|mingw/ =~ RUBY_PLATFORM
|
|
|
|
opts = {:encoding => Encoding.default_external}
|
|
|
|
orig.map! {|o| o.encode(Encoding.find("filesystem")) rescue o.tr("^a-z", "?")}
|
2013-05-21 02:08:04 -04:00
|
|
|
else
|
|
|
|
enc = Encoding.find("filesystem")
|
|
|
|
enc = Encoding::ASCII_8BIT if enc == Encoding::US_ASCII
|
2013-05-21 08:50:21 -04:00
|
|
|
orig.each {|o| o.force_encoding(enc) }
|
2013-05-20 14:11:23 -04:00
|
|
|
end
|
|
|
|
ents = Dir.entries(".", opts).reject {|n| /\A\./ =~ n}
|
2013-05-21 03:43:40 -04:00
|
|
|
ents.sort!
|
2013-05-20 14:11:23 -04:00
|
|
|
pp.assert_equal(orig, ents, bug7267)
|
|
|
|
}
|
|
|
|
end
|
2012-02-24 17:53:51 -05:00
|
|
|
end
|