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

Fixed a variable name

This commit is contained in:
Nobuyoshi Nakada 2019-06-28 17:07:17 +09:00
parent e9bce55c12
commit 8d04f90da4
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -537,7 +537,7 @@ class TestRipper::ParserEvents < Test::Unit::TestCase
tree = parse("a, *b = 1, 2", :on_mlhs_add_post) {thru_mlhs_add_post = true} tree = parse("a, *b = 1, 2", :on_mlhs_add_post) {thru_mlhs_add_post = true}
assert_equal false, thru_mlhs_add_post assert_equal false, thru_mlhs_add_post
assert_include(tree, "massign([var_field(a),*var_field(b)],") assert_include(tree, "massign([var_field(a),*var_field(b)],")
thru_massign_add_post = false thru_mlhs_add_post = false
tree = parse("a, *b, c = 1, 2", :on_mlhs_add_post) {thru_mlhs_add_post = true} tree = parse("a, *b, c = 1, 2", :on_mlhs_add_post) {thru_mlhs_add_post = true}
assert_equal true, thru_mlhs_add_post assert_equal true, thru_mlhs_add_post
assert_include(tree, "massign([var_field(a),*var_field(b),var_field(c)],") assert_include(tree, "massign([var_field(a),*var_field(b),var_field(c)],")