diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-31 01:49:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-31 01:49:27 +0000 |
commit | 99894e6c82054c893e6c9f5bccc181b97b8120ee (patch) | |
tree | c64919fc8fc176a0cfe8e251b8285e4dbad4d38c /test | |
parent | 3e0f09dbe5c9017900668bb6d1a4715dae36f0c2 (diff) | |
download | ruby-99894e6c82054c893e6c9f5bccc181b97b8120ee.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.rb | 2 |
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) |