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:
parent
e9bce55c12
commit
8d04f90da4
1 changed files with 1 additions and 1 deletions
|
@ -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)],")
|
||||||
|
|
Loading…
Reference in a new issue