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:
parent
feff683306
commit
314b76a567
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue