summaryrefslogtreecommitdiff
path: root/test/ruby/test_dir_m17n.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-21 07:43:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-21 07:43:40 +0000
commit0fd2c7e67b7f3da8e48372da7e03ee4f437bb8e8 (patch)
tree07b49040a91fc13c48b1ff9026b890b79e70d9f2 /test/ruby/test_dir_m17n.rb
parent28a4c88f3a97ba06a4e9dd48f26de5d770a15bf5 (diff)
test_dir_m17n.rb: sort Dir.entries
* test/ruby/test_dir_m17n.rb (test_entries_compose): the order on the filesystem does not matter, so sort Dir.entries result to compare. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_dir_m17n.rb')
-rw-r--r--test/ruby/test_dir_m17n.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_dir_m17n.rb b/test/ruby/test_dir_m17n.rb
index 9e72e19695..0816873647 100644
--- a/test/ruby/test_dir_m17n.rb
+++ b/test/ruby/test_dir_m17n.rb
@@ -326,6 +326,7 @@ class TestDir_M17N < Test::Unit::TestCase
orig.map {|o| o.force_encoding(enc) }
end
ents = Dir.entries(".", opts).reject {|n| /\A\./ =~ n}
+ ents.sort!
pp.assert_equal(orig, ents, bug7267)
}
end