ruby-changes:41322
From: nobu <ko1@a...>
Date: Thu, 31 Dec 2015 10:49:32 +0900 (JST)
Subject: [ruby-changes:41322] nobu:r53394 (trunk): test_module.rb: sort constants
nobu 2015-12-31 10:49:27 +0900 (Thu, 31 Dec 2015) New Revision: 53394 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53394 Log: test_module.rb: sort constants * test/ruby/test_module.rb (test_classpath): since r53376, all results of Module#constants should be sorted to compare. Modified files: trunk/test/ruby/test_module.rb Index: test/ruby/test_module.rb =================================================================== --- test/ruby/test_module.rb (revision 53393) +++ test/ruby/test_module.rb (revision 53394) @@ -532,7 +532,7 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L532 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/