diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index d199671e51..a35f7a5c7c 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -154,7 +154,7 @@ class TestDir < Test::Unit::TestCase open(File.join(@root, "}}{}"), "wb") {} open(File.join(@root, "}}a"), "wb") {} - assert_equal(%w(}}{} }}a).map {|f| File.join(@root, f)}, Dir.glob(File.join(@root, '}}{\{\},a}'))) + assert_equal(%w(}}{} }}a).map {|f| File.join(@root, f)}.sort, Dir.glob(File.join(@root, '}}{\{\},a}')).sort) assert_equal(%w(}}{} }}a b c).map {|f| File.join(@root, f)}.sort, Dir.glob(File.join(@root, '{\}\}{\{\},a},b,c}')).sort) end