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

ruby-changes:14588

From: akr <ko1@a...>
Date: Tue, 26 Jan 2010 23:54:37 +0900 (JST)
Subject: [ruby-changes:14588] Ruby:r26431 (trunk): suppress warnings.

akr	2010-01-26 23:54:02 +0900 (Tue, 26 Jan 2010)

  New Revision: 26431

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

  Log:
    suppress warnings.

  Modified files:
    trunk/test/ruby/test_complex.rb
    trunk/test/ruby/test_rational.rb

Index: test/ruby/test_complex.rb
===================================================================
--- test/ruby/test_complex.rb	(revision 26430)
+++ test/ruby/test_complex.rb	(revision 26431)
@@ -7,7 +7,7 @@
   def setup
     @rational = defined?(Rational)
     if @rational
-      @keiju = Rational.instance_variable_get('@RCS_ID')
+      @keiju = Rational.instance_variables.include?(:@RCS_ID)
     end
     seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
     @unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0
Index: test/ruby/test_rational.rb
===================================================================
--- test/ruby/test_rational.rb	(revision 26430)
+++ test/ruby/test_rational.rb	(revision 26431)
@@ -7,7 +7,7 @@
   def setup
     @complex = defined?(Complex)
     if @complex
-      @keiju = Complex.instance_variable_get('@RCS_ID')
+      @keiju = Complex.instance_variables.include?(:@RCS_ID)
     end
     seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
     @unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0

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

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