diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-24 01:19:46 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-24 01:19:46 +0000 |
commit | dda33ef6eadd1ca077c10fc03b76621dc7fc52d5 (patch) | |
tree | 8e6b778a6ff9605637024229eb31948051e0d28f /test | |
parent | a8edab6f8554d0843cad3f1f2ac890b560066f58 (diff) | |
download | ruby-dda33ef6eadd1ca077c10fc03b76621dc7fc52d5.tar.gz |
complex.c: undefine clamp
* complex.c (Init_Complex): undefine Complex#clamp, which does not
work like other Comparable methods, because Complex does not
have <=> method. patched by Tim Peters <zomg.tim AT gmail.com>
in [ruby-core:77720]. [Bug #12866]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 93d24a194a..2f21c10b3a 100644 --- a/test/ruby/test_complex.rb +++ b/test/ruby/test_complex.rb @@ -755,6 +755,7 @@ class Complex_Test < Test::Unit::TestCase 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?(:clamp)) assert_equal(false, c.respond_to?(:div)) assert_equal(false, c.respond_to?(:divmod)) assert_equal(false, c.respond_to?(:floor)) |