aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_ast.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 09:34:41 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-06-30 11:45:37 +0900
commit409b0ec4c3c4878c0ba164d1303de67787157808 (patch)
tree292c5554ee9f81571b760d359ac9513c44da3ee0 /test/ruby/test_ast.rb
parent84837e6d16cb0e588b1acc2691cb1048b9a89989 (diff)
downloadruby-409b0ec4c3c4878c0ba164d1303de67787157808.tar.gz
Suppress unused variable warnings
Diffstat (limited to 'test/ruby/test_ast.rb')
-rw-r--r--test/ruby/test_ast.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_ast.rb b/test/ruby/test_ast.rb
index e782653755..9598aa7553 100644
--- a/test/ruby/test_ast.rb
+++ b/test/ruby/test_ast.rb
@@ -205,9 +205,9 @@ class TestAst < Test::Unit::TestCase
end
def test_scope_local_variables
- node = RubyVM::AbstractSyntaxTree.parse("x = 0")
+ node = RubyVM::AbstractSyntaxTree.parse("_x = 0")
lv, _, body = *node.children
- assert_equal([:x], lv)
+ assert_equal([:_x], lv)
assert_equal(:LASGN, body.type)
end