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:
parent
cdecafff8d
commit
25caa12d1d
3 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
Thu Nov 26 21:14:30 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* 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.
|
||||
|
||||
Thu Nov 26 21:13:36 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* test/test_mathn.rb (TestMathn): new test case.
|
||||
|
|
|
@ -9,7 +9,8 @@ class Complex_Test < Test::Unit::TestCase
|
|||
if @rational
|
||||
@keiju = Rational.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_compsub
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue