Skip to content

Commit

Permalink
Got 3 more block arg edge cases under test.
Browse files Browse the repository at this point in the history
[git-p4: depot-paths = "//src/ruby_parser/dev/": change = 11269]
  • Loading branch information
zenspider committed Mar 12, 2017
1 parent 86996ac commit 356f235
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions lib/ruby_parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,6 @@ rule
args, _, _, _, args2 = val
result = block_var args, :*, args2
debug20 16, val, result
}
| tSTAR f_norm_arg
{
Expand All @@ -1347,12 +1346,10 @@ rule
_, splat, _, args = val
result = block_var :"*#{splat}", args
debug20 17, val, result
}
| tSTAR
{
result = block_var :*
debug20 18, val, result
}
| tSTAR tCOMMA f_marg_list
{
Expand Down
3 changes: 0 additions & 3 deletions test/test_ruby_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2779,7 +2779,6 @@ def test_kill_me_7
end

def test_kill_me_8
skip "REMOVE ME BEFORE COMMITTING"
# | f_marg_list tCOMMA tSTAR tCOMMA f_marg_list
rb = "f { |a, (b, *, c)| }"
pt = s(:iter,
Expand All @@ -2800,7 +2799,6 @@ def test_kill_me_9
end

def test_kill_me_10
skip "REMOVE ME BEFORE COMMITTING"
# | tSTAR f_norm_arg tCOMMA f_marg_list
rb = "f { |a, (*b, c)| }"
pt = s(:iter,
Expand All @@ -2811,7 +2809,6 @@ def test_kill_me_10
end

def test_kill_me_11
skip "REMOVE ME BEFORE COMMITTING"
# | tSTAR
rb = "f { |a, (*)| }"
pt = s(:iter,
Expand Down

0 comments on commit 356f235

Please sign in to comment.