summaryrefslogtreecommitdiff
path: root/test/ruby/test_rational.rb
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-05-10 10:02:12 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-05-12 10:30:46 +0900
commit6911b4bc82889860ff7da4ecf975504cdc3e5314 (patch)
treefab3bcb68c37c9625f4436619cdcd30d9283e142 /test/ruby/test_rational.rb
parent0ab0b86c8491d639b9ff1335ddf35e341ecd867e (diff)
test_cdhash: refactor change class
It is now strange to test Complex in a class named Rational_Test.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4469
Diffstat (limited to 'test/ruby/test_rational.rb')
-rw-r--r--test/ruby/test_rational.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index 27d0527d42..fe9de64c4c 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -830,21 +830,6 @@ class Rational_Test < Test::Unit::TestCase
assert_raise(ZeroDivisionError) {Rational("1/0")}
end
- def test_cdhash
- assert_separately([], <<-RUBY)
- n = case 1 when 2r then false else true end
- assert_equal(n, true, '[ruby-core:103759] [Bug #17854]')
- RUBY
- assert_separately([], <<-RUBY)
- n = case 3/2r when 1.5r then true else false end
- assert_equal(n, true, '[ruby-core:103759] [Bug #17854]')
- RUBY
- assert_separately([], <<-RUBY)
- n = case 1i when 1i then true else false end
- assert_equal(n, true, '[ruby-core:103759] [Bug #17854]')
- RUBY
- end
-
def test_Rational_with_invalid_exception
assert_raise(ArgumentError) {
Rational("1/1", exception: 1)