mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 04:24:04 +02:00
test/ruby/test_rational.rb: Prevent "assigned but unused variable"
This commit is contained in:
parent
8e06075442
commit
c1bebbb2ee
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue