aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-22 12:21:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-22 12:26:43 +0900
commitd5f50463c2b5c5263aa45c58f3f4ec73de8868d5 (patch)
tree34b9190f6aef057003dc7e02b1040a7596965d4f /test
parentd0b17a4d203b0838e2290bcc52a647e045596b59 (diff)
downloadruby-d5f50463c2b5c5263aa45c58f3f4ec73de8868d5.tar.gz
[Bug #18937] Coerce non-Numeric into Complex at comparisons
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_complex.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_complex.rb b/test/ruby/test_complex.rb
index a3a7546575..f85bf101e0 100644
--- a/test/ruby/test_complex.rb
+++ b/test/ruby/test_complex.rb
@@ -579,7 +579,7 @@ class Complex_Test < Test::Unit::TestCase
def test_coerce2
x = ObjectX.new
- %w(+ - * / quo **).each do |op|
+ %w(+ - * / quo ** <=>).each do |op|
assert_kind_of(Numeric, Complex(1).__send__(op, x))
end
end