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

ruby-changes:41361

From: nobu <ko1@a...>
Date: Mon, 4 Jan 2016 16:47:37 +0900 (JST)
Subject: [ruby-changes:41361] nobu:r53433 (trunk): test_ostruct.rb: sort method names

nobu	2016-01-04 16:47:44 +0900 (Mon, 04 Jan 2016)

  New Revision: 53433

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

  Log:
    test_ostruct.rb: sort method names
    
    * test/ostruct/test_ostruct.rb (test_accessor_defines_method):
      should not depend on the order of methods.

  Modified files:
    trunk/test/ostruct/test_ostruct.rb
Index: test/ostruct/test_ostruct.rb
===================================================================
--- test/ostruct/test_ostruct.rb	(revision 53432)
+++ test/ostruct/test_ostruct.rb	(revision 53433)
@@ -171,7 +171,7 @@ class TC_OpenStruct < Test::Unit::TestCa https://github.com/ruby/ruby/blob/trunk/test/ostruct/test_ostruct.rb#L171
     assert os.respond_to? :foo
     assert_equal([], os.singleton_methods)
     assert_equal(42, os.foo)
-    assert_equal([:foo, :foo=], os.singleton_methods)
+    assert_equal([:foo, :foo=], os.singleton_methods.sort)
   end
 
   def test_does_not_redefine

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

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