diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-12 14:46:35 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-12 14:46:35 +0000 |
commit | d333161cec851f0370df25d85f77631121a06123 (patch) | |
tree | 0f127352f56b0e680a01052f172468fb3906c7da /test/ruby/test_complex.rb | |
parent | 88e2237573d34b0fef7839056cbe8083f2f7cb72 (diff) | |
download | ruby-d333161cec851f0370df25d85f77631121a06123.tar.gz ruby-d333161cec851f0370df25d85f77631121a06123.tar.xz ruby-d333161cec851f0370df25d85f77631121a06123.zip |
merges r23946 from trunk into ruby_1_9_1.
--
* complex.c: undef-ed shome methods. [ruby-core:24110]
* complex.c (Numeric#arg): NaN for NaN. [ruby-core:24116]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@24053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_complex.rb')
-rw-r--r-- | test/ruby/test_complex.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb index 39a02044f..b4be08ed9 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -519,7 +519,7 @@ class Complex_Test < Test::Unit::TestCase assert_instance_of(Fixnum, Complex(1,2) - Complex(1,2)) assert_instance_of(Fixnum, Complex(1,2) * 0) assert_instance_of(Fixnum, Complex(1,2) / Complex(1,2)) - assert_instance_of(Fixnum, Complex(1,2).div(Complex(1,2))) +# assert_instance_of(Fixnum, Complex(1,2).div(Complex(1,2))) assert_instance_of(Fixnum, Complex(1,2).quo(Complex(1,2))) # assert_instance_of(Fixnum, Complex(1,2) ** 0) # mathn's bug end @@ -779,17 +779,19 @@ class Complex_Test < Test::Unit::TestCase def test_respond c = Complex(1,1) + assert_equal(false, c.respond_to?(:%)) assert_equal(false, c.respond_to?(:<)) assert_equal(false, c.respond_to?(:<=)) assert_equal(false, c.respond_to?(:<=>)) assert_equal(false, c.respond_to?(:>)) assert_equal(false, c.respond_to?(:>=)) assert_equal(false, c.respond_to?(:between?)) -# assert_equal(false, c.respond_to?(:div)) # ? + assert_equal(false, c.respond_to?(:div)) assert_equal(false, c.respond_to?(:divmod)) assert_equal(false, c.respond_to?(:floor)) assert_equal(false, c.respond_to?(:ceil)) assert_equal(false, c.respond_to?(:modulo)) + assert_equal(false, c.respond_to?(:remainder)) assert_equal(false, c.respond_to?(:round)) assert_equal(false, c.respond_to?(:step)) assert_equal(false, c.respond_to?(:tunrcate)) |