1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/ruby/test_complex.rb (@unify): fix the detection if math

loaded. This makes test_complex.rb work fine with the previous
  commit.

* test/ruby/test_rational.rb (@unify): ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2009-11-26 12:18:40 +00:00
parent cdecafff8d
commit 25caa12d1d
3 changed files with 12 additions and 2 deletions

View file

@ -9,7 +9,8 @@ class Rational_Test < Test::Unit::TestCase
if @complex
@keiju = Complex.instance_variable_get('@RCS_ID')
end
@unify = $".grep(/mathn/).size != 0
seps = [File::SEPARATOR, File::ALT_SEPARATOR].compact.map{|x| Regexp.escape(x)}.join("|")
@unify = $".grep(/(?:^|#{seps})mathn(?:\.(?:rb|so))?/).size != 0
end
def test_ratsub