mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_module.rb: Method tables are not guaranteed to be
ordered. * test/ruby/test_struct.rb: Ditto. * test/ruby/test_thread.rb: Thread locals are not guaranteed to be ordered. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9ec0f8b7cb
commit
c56fa0e2b7
3 changed files with 3 additions and 3 deletions
|
@ -455,7 +455,7 @@ class TestModule < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_instance_methods
|
||||
assert_equal([:user, :user2], User.instance_methods(false))
|
||||
assert_equal([:user, :user2], User.instance_methods(false).sort)
|
||||
assert_equal([:user, :user2, :mixin].sort, User.instance_methods(true).sort)
|
||||
assert_equal([:mixin], Mixin.instance_methods)
|
||||
assert_equal([:mixin], Mixin.instance_methods(true))
|
||||
|
|
|
@ -147,7 +147,7 @@ module TestStruct
|
|||
assert_equal("#<struct :@a=3>", o.inspect)
|
||||
|
||||
methods = klass.instance_methods(false)
|
||||
assert_equal([:@a, :"@a="].inspect, methods.inspect, '[Bug #8756]')
|
||||
assert_equal([:@a, :"@a="].sort.inspect, methods.sort.inspect, '[Bug #8756]')
|
||||
assert_include(methods, :@a)
|
||||
assert_include(methods, :"@a=")
|
||||
end
|
||||
|
|
|
@ -476,7 +476,7 @@ class TestThread < Test::Unit::TestCase
|
|||
assert_equal(false, t.key?(:qux))
|
||||
assert_equal(false, t.key?("qux"))
|
||||
|
||||
assert_equal([:foo, :bar, :baz], t.keys)
|
||||
assert_equal([:foo, :bar, :baz].sort, t.keys.sort)
|
||||
|
||||
ensure
|
||||
t.kill if t
|
||||
|
|
Loading…
Add table
Reference in a new issue