diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-30 09:34:41 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-06-30 11:45:37 +0900 |
commit | 409b0ec4c3c4878c0ba164d1303de67787157808 (patch) | |
tree | 292c5554ee9f81571b760d359ac9513c44da3ee0 /test/ruby/test_ast.rb | |
parent | 84837e6d16cb0e588b1acc2691cb1048b9a89989 (diff) |
Suppress unused variable warnings
Diffstat (limited to 'test/ruby/test_ast.rb')
-rw-r--r-- | test/ruby/test_ast.rb | 4 |
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 |