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:
parent
7b2f9d9238
commit
74f9ec7e4f
3 changed files with 10 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue