summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-04 07:41:32 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-08-04 07:41:32 +0000
commit91f209816f88288c6efacac783224bd3c9c56cd6 (patch)
tree3fb7a3597dd8f379bdccc3c0f7b16cb13b082102
parent6ed8d39de007b3e210f03dac79790fb2c876e801 (diff)
* test/ruby/test_module.rb: should not expect a method table ordering.
[Feature #11414] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_module.rb6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index b2a8964af6..98827ad654 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 4 16:40:26 2015 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_module.rb: should not expect a method table ordering.
+ [Feature #11414]
+
Tue Aug 04 15:30:04 2015 Koichi Sasada <ko1@atdot.net>
* proc.c (rb_block_clear_env_self): clear by Qfalse intead of Qnil.
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb
index 812b7f6a31..18db88f04a 100644
--- a/test/ruby/test_module.rb
+++ b/test/ruby/test_module.rb
@@ -1114,13 +1114,13 @@ class TestModule < Test::Unit::TestCase
assert_equal [:f], memo.shift, '[ruby-core:25536]'
assert_equal mod.instance_method(:f), memo.shift
assert_equal :g, memo.shift
- assert_equal [:f, :g], memo.shift
+ assert_equal [:f, :g].sort, memo.shift.sort
assert_equal mod.instance_method(:f), memo.shift
assert_equal :a, memo.shift
- assert_equal [:f, :g, :a], memo.shift
+ assert_equal [:f, :g, :a].sort, memo.shift.sort
assert_equal mod.instance_method(:a), memo.shift
assert_equal :a=, memo.shift
- assert_equal [:f, :g, :a, :a=], memo.shift
+ assert_equal [:f, :g, :a, :a=].sort, memo.shift.sort
assert_equal mod.instance_method(:a=), memo.shift
end