mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
3e0f09dbe5
commit
99894e6c82
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue