Skip to content

Commit

Permalink
tests/each: add a case for dotted_identifier on `parenthesized_expr…
Browse files Browse the repository at this point in the history
…ession`
  • Loading branch information
janw4ld committed Jan 13, 2025
1 parent 1aeb2bc commit 5e629e8
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions test/corpus/each.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Basic each loop
(juxt_function_call
function: (dotted_identifier
(list
(string
(string
(string_content))
(string
(string
(string_content))
(string
(string
(string_content)))
(identifier))
args: (argument_list
Expand All @@ -25,3 +25,21 @@ Basic each loop
(string
(string_content))
(identifier))))))))
==========
Each loop on range syntax
==========
(1..<5).each{println it}
---
(source_file
(juxt_function_call
function: (dotted_identifier
(parenthesized_expression
(binary_op
(number_literal)
(number_literal)))
(identifier))
args: (argument_list
(closure
(declaration
type: (identifier)
name: (identifier))))))

0 comments on commit 5e629e8

Please sign in to comment.