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

ruby-changes:32136

From: nobu <ko1@a...>
Date: Sun, 15 Dec 2013 07:03:31 +0900 (JST)
Subject: [ruby-changes:32136] nobu:r44215 (trunk): test_thread.rb: assert_operator for comparison

nobu	2013-12-15 07:03:19 +0900 (Sun, 15 Dec 2013)

  New Revision: 44215

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

  Log:
    test_thread.rb: assert_operator for comparison
    
    * test/ruby/test_thread.rb (test_priority): use assert_operator
      for comparison instead of assert_send.

  Modified files:
    trunk/test/ruby/test_thread.rb
Index: test/ruby/test_thread.rb
===================================================================
--- test/ruby/test_thread.rb	(revision 44214)
+++ test/ruby/test_thread.rb	(revision 44215)
@@ -140,7 +140,7 @@ class TestThread < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_thread.rb#L140
     end
     t1.kill
     t2.kill
-    assert_send([c1, :>, c2], "[ruby-dev:33124]") # not guaranteed
+    assert_operator(c1, :>, c2, "[ruby-dev:33124]") # not guaranteed
   end
 
   def test_new

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

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