diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 22:30:45 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-14 22:30:45 +0000 |
commit | aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476 (patch) | |
tree | 88a2bb74ffc76c0efc2c03ba67eb549d58a7bf88 /test/ruby/test_complex.rb | |
parent | 711f429d0215b364916f7f171981ea85059bcbcf (diff) | |
download | ruby-aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476.tar.gz ruby-aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476.tar.xz ruby-aaf80f26b32d0e3b8e75fab6ff40eb9e9ea60476.zip |
* complex.c (nucomp_div): [ruby-dev:34357]
* complex.c (nucomp_abs): use hypot.
* complex.c (nucomp_quo): do not force convertion.
* test/ruby/test_complex.rb: omitted some meaningless tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r-- | test/ruby/test_complex.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index c1a2cfa66..f2324a2b7 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -1055,6 +1055,7 @@ class Complex_Test < Test::Unit::TestCase Complex.const_set(:Unify, unify_val) if f end +=begin def test_abs b = 2**100 def b.*(x); self; end rescue nil @@ -1075,6 +1076,7 @@ class Complex_Test < Test::Unit::TestCase nan = inf/inf assert_raise(Errno::EDOM, Errno::ERANGE) { Complex(1, nan).abs } end +=end def test_coerce c = Complex(6, 3) |