Skip to content

Commit

Permalink
[ruby/prism] Add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
makenowjust authored and matzbot committed Dec 5, 2023
1 parent 975b74a commit 3260ed7
Show file tree
Hide file tree
Showing 3 changed files with 159 additions and 121 deletions.
2 changes: 2 additions & 0 deletions test/prism/errors_test.rb
Expand Up @@ -1918,6 +1918,8 @@ def test_command_calls
! ! a b
def f a = b c; end
def f(a = b c); end
a = b rescue c d
def a = b rescue c d
->a=b c{}
->(a=b c){}
case; when a b; end
Expand Down
2 changes: 2 additions & 0 deletions test/prism/fixtures/command_method_call.txt
Expand Up @@ -16,6 +16,8 @@ foo[bar 1]

foo 1 and bar 2

foo 1 or bar 2

not foo 1

foo = bar = baz 1
Expand Down

0 comments on commit 3260ed7

Please sign in to comment.