From 5e629e8d5c23d8211f7dc129b68b3623b76b4807 Mon Sep 17 00:00:00 2001 From: janw4ld Date: Mon, 13 Jan 2025 14:35:00 +0200 Subject: [PATCH] tests/each: add a case for `dotted_identifier` on `parenthesized_expression` --- test/corpus/each.test | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/test/corpus/each.test b/test/corpus/each.test index c30ceee..8378a49 100644 --- a/test/corpus/each.test +++ b/test/corpus/each.test @@ -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 @@ -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))))))