aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-31 01:49:27 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-31 01:49:27 +0000
commit01422ed265374d8852f180bdef298e855eb09535 (patch)
treec64919fc8fc176a0cfe8e251b8285e4dbad4d38c /test
parent013eb679df861d15e64c40e7fef0f205e1191dfd (diff)
downloadruby-01422ed265374d8852f180bdef298e855eb09535.tar.gz
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_module.rb2
1 files changed, 1 insertions, 1 deletions
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)