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

ruby-changes:27780

From: ayumin <ko1@a...>
Date: Wed, 20 Mar 2013 04:41:39 +0900 (JST)
Subject: [ruby-changes:27780] ayumin:r39832 (trunk): * test/rinda/test_rinda.rb: remove unused variables.

ayumin	2013-03-20 04:41:30 +0900 (Wed, 20 Mar 2013)

  New Revision: 39832

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

  Log:
    * test/rinda/test_rinda.rb: remove unused variables.

  Modified files:
    trunk/ChangeLog
    trunk/test/rinda/test_rinda.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39831)
+++ ChangeLog	(revision 39832)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Wed Mar 20 04:27:42 2013  Ayumu AIZAWA  <ayumu.aizawa@g...>
+
+	* test/rinda/test_rinda.rb: remove unused variables.
+	  patched by Vipul A M <vipulnsward@g...>
+
 Wed Mar 20 04:15:32 2013  Ayumu AIZAWA  <ayumu.aizawa@g...>
 
 	* ext/bigdecimal/bigdecimal.c: fixed typo.
Index: test/rinda/test_rinda.rb
===================================================================
--- test/rinda/test_rinda.rb	(revision 39831)
+++ test/rinda/test_rinda.rb	(revision 39832)
@@ -150,7 +150,7 @@ module TupleSpaceTestModule https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L150
     assert(!tmpl.match({"message"=>"Hello", "no_name"=>"Foo"}))
 
     assert_raise(Rinda::InvalidHashTupleKey) do
-      tmpl = Rinda::Template.new({:message=>String, "name"=>String})
+      Rinda::Template.new({:message=>String, "name"=>String})
     end
     tmpl = Rinda::Template.new({"name"=>String})
     assert_equal(1, tmpl.size)
@@ -262,7 +262,7 @@ module TupleSpaceTestModule https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L262
   end
 
   def test_core_01
-    5.times do |n|
+    5.times do
       @ts.write([:req, 2])
     end
 
@@ -297,7 +297,7 @@ module TupleSpaceTestModule https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L297
       s
     end
 
-    5.times do |n|
+    5.times do
       @ts.write([:req, 2])
     end
 
@@ -310,7 +310,7 @@ module TupleSpaceTestModule https://github.com/ruby/ruby/blob/trunk/test/rinda/test_rinda.rb#L310
     notify1 = @ts.notify(nil, [:req, Integer])
     notify2 = @ts.notify(nil, {"message"=>String, "name"=>String})
 
-    5.times do |n|
+    5.times do
       @ts.write([:req, 2])
     end
 

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

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