summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2020-10-28 00:27:56 +0900
committerYusuke Endoh <mame@ruby-lang.org>2020-10-28 00:27:56 +0900
commitc1bebbb2eee5e8d808d55a9cb27f492e58331540 (patch)
treec4b6568c3a5902865a465472160837f763c284de /test
parent8e06075442ade74a0c23afad235742c41b3ceac8 (diff)
test/ruby/test_rational.rb: Prevent "assigned but unused variable"
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rational.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rational.rb b/test/ruby/test_rational.rb
index e89b74d39e..820dd30a82 100644
--- a/test/ruby/test_rational.rb
+++ b/test/ruby/test_rational.rb
@@ -172,7 +172,7 @@ class Rational_Test < Test::Unit::TestCase
def to_r; 1r; end
def to_int; 1; end
end
- assert_equal(1/2r, Rational(cls.new, 2))
+ assert_equal(1/2r, Rational(cls.new, 2), bug16518)
end
def test_attr