1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test/-ext-/eval/test_eval.rb: Prevent "assigned but unused variable"

This commit is contained in:
Yusuke Endoh 2022-08-24 10:36:17 +09:00
parent feff683306
commit 314b76a567

View file

@ -4,9 +4,9 @@ require "-test-/eval"
class EvalTest < Test::Unit::TestCase
def test_rb_eval_string
a = 1
_a = 1
assert_equal [self, 1, __method__], rb_eval_string(%q{
[self, a, __method__]
[self, _a, __method__]
})
end
end