diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-28 00:27:56 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-10-28 00:27:56 +0900 |
| commit | c1bebbb2eee5e8d808d55a9cb27f492e58331540 (patch) | |
| tree | c4b6568c3a5902865a465472160837f763c284de /test/ruby | |
| parent | 8e06075442ade74a0c23afad235742c41b3ceac8 (diff) | |
test/ruby/test_rational.rb: Prevent "assigned but unused variable"
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_rational.rb | 2 |
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 |
