mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rational.rb: fixed indent.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e9e99651e3
commit
6d67a48876
2 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Aug 24 11:47:39 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
|
* test/ruby/test_rational.rb: fixed indent.
|
||||||
|
|
||||||
Sun Aug 24 11:44:11 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
Sun Aug 24 11:44:11 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
* test/ruby/test_rational.rb: remove commented-out code.
|
* test/ruby/test_rational.rb: remove commented-out code.
|
||||||
|
|
|
@ -833,11 +833,11 @@ class Rational_Test < Test::Unit::TestCase
|
||||||
def test_to_c
|
def test_to_c
|
||||||
if @complex && !@keiju
|
if @complex && !@keiju
|
||||||
if @unify
|
if @unify
|
||||||
assert_equal(Rational(3,2), Rational(3,2).to_c)
|
assert_equal(Rational(3,2), Rational(3,2).to_c)
|
||||||
assert_equal(Rational(3,2), Complex(Rational(3,2)))
|
assert_equal(Rational(3,2), Complex(Rational(3,2)))
|
||||||
else
|
else
|
||||||
assert_equal(Complex(Rational(3,2)), Rational(3,2).to_c)
|
assert_equal(Complex(Rational(3,2)), Rational(3,2).to_c)
|
||||||
assert_equal(Complex(Rational(3,2)), Complex(Rational(3,2)))
|
assert_equal(Complex(Rational(3,2)), Complex(Rational(3,2)))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -861,9 +861,9 @@ class Rational_Test < Test::Unit::TestCase
|
||||||
|
|
||||||
if @complex
|
if @complex
|
||||||
if @keiju
|
if @keiju
|
||||||
assert_raise(NoMethodError){Complex(1,2).to_r}
|
assert_raise(NoMethodError){Complex(1,2).to_r}
|
||||||
else
|
else
|
||||||
assert_raise(RangeError){Complex(1,2).to_r}
|
assert_raise(RangeError){Complex(1,2).to_r}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue