test/ruby/test_rational.rb: Prevent "assigned but unused variable"

This commit is contained in:
Yusuke Endoh 2020-10-28 00:27:56 +09:00
parent 8e06075442
commit c1bebbb2ee

View file

@ -172,7 +172,7 @@ class Rational_Test < Test::Unit::TestCase
def to_r; 1r; end def to_r; 1r; end
def to_int; 1; end def to_int; 1; end
end end
assert_equal(1/2r, Rational(cls.new, 2)) assert_equal(1/2r, Rational(cls.new, 2), bug16518)
end end
def test_attr def test_attr