From 9ab38786b469a815b28bd6aed69766eda6c7cf66 Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 22 Oct 2017 02:08:46 +0000 Subject: sort the test result git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_dir.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index f12fd13c58..d199671e51 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -144,8 +144,8 @@ class TestDir < Test::Unit::TestCase assert_equal([File.join(@root, '//a')], Dir.glob(@root + '//a')) FileUtils.touch(File.join(@root, "{}")) - 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) }, + Dir.glob(File.join(@root, '{\{\},a}')).sort) assert_equal([], Dir.glob(File.join(@root, '['))) assert_equal([], Dir.glob(File.join(@root, '[a-\\'))) -- cgit v1.2.3