mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bddadeeae4
commit
6ce4994231
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ class Complex_Test < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@rational = defined?(Rational)
|
@rational = defined?(Rational)
|
||||||
if @rational
|
if @rational
|
||||||
@keiju = Rational.instance_variable_get('@RCS_ID')
|
@keiju = Rational.instance_variables.include?(:@RCS_ID)
|
||||||
end
|
end
|
||||||
seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
|
seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
|
||||||
@unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0
|
@unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Rational_Test < Test::Unit::TestCase
|
||||||
def setup
|
def setup
|
||||||
@complex = defined?(Complex)
|
@complex = defined?(Complex)
|
||||||
if @complex
|
if @complex
|
||||||
@keiju = Complex.instance_variable_get('@RCS_ID')
|
@keiju = Complex.instance_variables.include?(:@RCS_ID)
|
||||||
end
|
end
|
||||||
seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
|
seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
|
||||||
@unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0
|
@unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue