[前][次][番号順一覧][スレッド一覧]

ruby-changes:39401

From: ko1 <ko1@a...>
Date: Tue, 4 Aug 2015 16:42:11 +0900 (JST)
Subject: [ruby-changes:39401] ko1:r51482 (trunk): * test/ruby/test_module.rb: should not expect a method table ordering.

ko1	2015-08-04 16:41:32 +0900 (Tue, 04 Aug 2015)

  New Revision: 51482

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=51482

  Log:
    * test/ruby/test_module.rb: should not expect a method table ordering.
      [Feature #11414]

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_module.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 51481)
+++ ChangeLog	(revision 51482)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Aug  4 16:40:26 2015  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/test_module.rb: should not expect a method table ordering.
+	  [Feature #11414]
+
 Tue Aug 04 15:30:04 2015  Koichi Sasada  <ko1@a...>
 
 	* proc.c (rb_block_clear_env_self): clear by Qfalse intead of Qnil.
Index: test/ruby/test_module.rb
===================================================================
--- test/ruby/test_module.rb	(revision 51481)
+++ test/ruby/test_module.rb	(revision 51482)
@@ -1114,13 +1114,13 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1114
     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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]