From 99894e6c82054c893e6c9f5bccc181b97b8120ee Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 31 Dec 2015 01:49:27 +0000 Subject: [PATCH] test_module.rb: sort constants * test/ruby/test_module.rb (test_classpath): since r53376, all results of Module#constants should be sorted to compare. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 64ea4f7488..5c07f7a382 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -532,7 +532,7 @@ class TestModule < Test::Unit::TestCase assert_nil(n.name) assert_equal([:N], m.constants) m.module_eval("module O end") - assert_equal([:N, :O], m.constants) + assert_equal([:N, :O], m.constants.sort) m.module_eval("class C; end") assert_equal([:C, :N, :O], m.constants.sort) assert_nil(m::N.name)