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

ruby-changes:38654

From: eregon <ko1@a...>
Date: Wed, 3 Jun 2015 02:33:11 +0900 (JST)
Subject: [ruby-changes:38654] eregon:r50735 (trunk): * test/ruby/test_module.rb: Do not assume class variable order.

eregon	2015-06-03 02:32:50 +0900 (Wed, 03 Jun 2015)

  New Revision: 50735

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

  Log:
    * test/ruby/test_module.rb: Do not assume class variable order.
      Path by @enebo.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_module.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50734)
+++ ChangeLog	(revision 50735)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Jun  3 02:29:25 2015  Benoit Daloze  <eregontp@g...>
+
+	* test/ruby/test_module.rb: Do not assume class variable order.
+	  Path by @enebo.
+
 Wed Jun  3 01:10:38 2015  Yusuke Endoh  <mame@t...>
 
 	* vm_method.c (rb_method_definition_set): remove a double assignment.
Index: test/ruby/test_module.rb
===================================================================
--- test/ruby/test_module.rb	(revision 50734)
+++ test/ruby/test_module.rb	(revision 50735)
@@ -1768,8 +1768,8 @@ class TestModule < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_module.rb#L1768
     m2.send(:include, m)
     m2.class_variable_set(:@@bar, 2)
     assert_equal([:@@foo], m.class_variables)
-    assert_equal([:@@bar, :@@foo], m2.class_variables)
-    assert_equal([:@@bar, :@@foo], m2.class_variables(true))
+    assert_equal([:@@bar, :@@foo], m2.class_variables.sort)
+    assert_equal([:@@bar, :@@foo], m2.class_variables(true).sort)
     assert_equal([:@@bar], m2.class_variables(false))
   end
 

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

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