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

ruby-changes:32950

From: hsbt <ko1@a...>
Date: Tue, 18 Feb 2014 09:44:44 +0900 (JST)
Subject: [ruby-changes:32950] hsbt:r45029 (trunk): * test/test/psych/test_string.rb: remove unused variables.

hsbt	2014-02-18 09:44:38 +0900 (Tue, 18 Feb 2014)

  New Revision: 45029

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

  Log:
    * test/test/psych/test_string.rb: remove unused variables.
    * test/test/psych/test_yaml.rb: ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/psych/test_string.rb
    trunk/test/psych/test_yaml.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 45028)
+++ ChangeLog	(revision 45029)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Feb 18 09:35:44 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/test/psych/test_string.rb: remove unused variables.
+	* test/test/psych/test_yaml.rb: ditto.
+
 Mon Feb 17 21:31:31 2014  Koichi Sasada  <ko1@a...>
 
 	* test/ruby/test_gc.rb: ignore warning messages for running with -w
Index: test/psych/test_yaml.rb
===================================================================
--- test/psych/test_yaml.rb	(revision 45028)
+++ test/psych/test_yaml.rb	(revision 45029)
@@ -250,7 +250,6 @@ EOY https://github.com/ruby/ruby/blob/trunk/test/psych/test_yaml.rb#L250
 
 	def test_spec_mapping_between_sequences
 		# Complex key #1
-		dj = Date.new( 2001, 7, 23 )
 		assert_parse_only(
 			{ [ 'Detroit Tigers', 'Chicago Cubs' ] => [ Date.new( 2001, 7, 23 ) ],
 			  [ 'New York Yankees', 'Atlanta Braves' ] => [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ), Date.new( 2001, 8, 14 ) ] }, <<EOY
@@ -606,7 +605,7 @@ EOY https://github.com/ruby/ruby/blob/trunk/test/psych/test_yaml.rb#L605
 	def test_spec_domain_prefix
         customer_proc = proc { |type, val|
             if Hash === val
-                scheme, domain, type = type.split( ':', 3 )
+                _, _, type = type.split( ':', 3 )
                 val['type'] = "domain #{type}"
                 val
             else
Index: test/psych/test_string.rb
===================================================================
--- test/psych/test_string.rb	(revision 45028)
+++ test/psych/test_string.rb	(revision 45029)
@@ -137,7 +137,7 @@ string: &70121654388580 !ruby/string https://github.com/ruby/ruby/blob/trunk/test/psych/test_string.rb#L137
       ivar = "on rock and roll"
       food.instance_variable_set(:@we_built_this_city, ivar)
 
-      str = Psych.load Psych.dump food
+      Psych.load Psych.dump food
       assert_equal ivar, food.instance_variable_get(:@we_built_this_city)
     end
 

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

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