Skip to content

Commit aad2a6a

Browse files
committed
Add YAML fixtures for for-loop
1 parent fa95ce5 commit aad2a6a

17 files changed

+3189
-162
lines changed

spec/tags/truffle/parsing/parsing_tags.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
fails:Parsing a For operator (for ... in ... operator) case is parsed correctly
1+
fails:Parsing a For operator (multi-assignment / with multiple variables (for a, b, c in [])) case is parsed correctly
2+
fails:Parsing a For operator (multi-assignment / with nested multi assignment (for a, (b, c) in [])) case is parsed correctly
3+
fails:Parsing a For operator (multi-assignment / with preceding variables, splat operator and following variables (for a, *b, c in [])) case is parsed correctly
4+
fails:Parsing a For operator (multi-assignment / with preceding variables and implicit rest (for a, in [])) case is parsed correctly
5+
fails:Parsing a For operator (multi-assignment / with preceding variables and splat operator (for a, b, *c in [])) case is parsed correctly
6+
fails:Parsing a For operator (multi-assignment / with splat operator and following variables (for *a, b, c in [])) case is parsed correctly
7+
fails:Parsing a For operator (with attribute assignment (for a.b in [])) case is parsed correctly
8+
fails:Parsing a For operator (with class variable (for @@a in [])) case is parsed correctly
9+
fails:Parsing a For operator (with constant (for A in [])) case is parsed correctly
10+
fails:Parsing a For operator (with fully qualified constant (for A in [])) case is parsed correctly
11+
fails:Parsing a For operator (with global variable (for $a in [])) case is parsed correctly
12+
fails:Parsing a For operator (with instance variable (for @a in [])) case is parsed correctly
13+
fails:Parsing a For operator (with local variable (for a in [])) case is parsed correctly
14+
fails:Parsing a For operator (with reference assignment (for a[b] in [])) case is parsed correctly
15+
fails:Parsing a For operator (with reference assignment and multiple explicit arguments (for a[b, c] in [])) case is parsed correctly
216

317
# Not supported yet by Prism
418
# See https://github.com/ruby/prism/issues/1997

spec/truffle/parsing/fixtures/for/multi_assignment/with_multiple_variables.yaml

Lines changed: 220 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/multi_assignment/with_nested_multi_assignment.yaml

Lines changed: 233 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_splat_operator_and_following_variables.yaml

Lines changed: 223 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_variables_and_implicit_rest.yaml

Lines changed: 191 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_variables_and_splat_operator.yaml

Lines changed: 221 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/multi_assignment/with_splat_operator_and_following_variables.yaml

Lines changed: 221 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/with_attribute_assignment.yaml

Lines changed: 238 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/with_class_variable.yaml

Lines changed: 195 additions & 0 deletions
Large diffs are not rendered by default.

spec/truffle/parsing/fixtures/for/with_constant.yaml

Lines changed: 190 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)