diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-02 12:36:06 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-02 12:36:06 +0000 |
commit | 292b3e4113eb1258119c0afe5834c8fc8a7f018c (patch) | |
tree | 88e9c6becaa0197c8f4241ffcb17c83807accd39 /test/ruby/test_complex.rb | |
parent | c852d76f46a68e28200f0c3f68c8c67879e79c86 (diff) | |
download | ruby-292b3e4113eb1258119c0afe5834c8fc8a7f018c.tar.gz |
* complex.c (nucomp_rationalize): fix function. [ruby-core:40667]
[Bug #5546]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r-- | test/ruby/test_complex.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 7ff64927ac..b2f9e8dff0 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -16,6 +16,7 @@ class Complex_Test < Test::Unit::TestCase def test_rationalize assert_equal(1.quo(3), Complex(1/3.0, 0).rationalize, '[ruby-core:38885]') assert_equal(1.quo(5), Complex(0.2, 0).rationalize, '[ruby-core:38885]') + assert_equal(5.quo(2), Complex(2.5, 0).rationalize(0), '[ruby-core:40667]') end def test_compsub |