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

* rational.c: added a static variable for nurat_to_f.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2008-08-30 13:25:48 +00:00
parent 7b2f9d9238
commit 74f9ec7e4f
3 changed files with 10 additions and 2 deletions

View file

@ -283,12 +283,12 @@ class Complex_Test < Test::Unit::TestCase
assert_equal(Complex(1,1), Complex(1,1).nonzero?)
end
def rect
def test_rect
assert_equal([1,2], Complex.rectangular(1,2).rectangular)
assert_equal([1,2], Complex.rect(1,2).rect)
end
def polar
def test_polar
assert_equal([1,2], Complex.polar(1,2).polar)
end