Skip to content

Commit 0b25e79

Browse files
committed
Add YAML fixtures
1 parent 934753d commit 0b25e79

File tree

43 files changed

+5663
-19
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+5663
-19
lines changed

spec/tags/truffle/parsing/parsing_tags.txt

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ fails:Parsing a BEGIN block (BEGIN { ... }) case is parsed correctly
22
fails:Parsing a END block (END { ... }) case is parsed correctly
33
fails:Parsing a Encoding keyword (__ENCODING__ keyword) case is parsed correctly
44
fails:Parsing a begin ... end block (with multiple expressions inside a block) case is parsed correctly
5+
fails:Parsing a Block (Argument descriptors / when numbered parameters used in a block) case is parsed correctly
56
fails:Parsing a Block (Argument descriptors / with block (def a(&b))) case is parsed correctly
67
fails:Parsing a Block (Argument descriptors / with double splat operator (**kw)) case is parsed correctly
78
fails:Parsing a Block (Argument descriptors / with double splat operator without variable name (**)) case is parsed correctly
@@ -11,13 +12,16 @@ fails:Parsing a Block (Argument descriptors / with optional positional parameter
1112
fails:Parsing a Block (Argument descriptors / when multiple positional parameters only) case is parsed correctly
1213
fails:Parsing a Block (Argument descriptors / with splat operator and preceding and following parameters) case is parsed correctly
1314
fails:Parsing a Block (Argument descriptors / with splat operator without name and preceding and following parameters) case is parsed correctly
15+
fails:Parsing a Block (Argument descriptors / with implicit rest parameter (|a,|)) case is parsed correctly
1416
fails:Parsing a Block (Arity / with block (def a(&b))) case is parsed correctly
1517
fails:Parsing a Block (Arity / with double splat operator (**kw)) case is parsed correctly
1618
fails:Parsing a Block (Arity / with keyword arguments) case is parsed correctly
1719
fails:Parsing a Block (Arity / with optional keyword arguments) case is parsed correctly
1820
fails:Parsing a Block (Arity / with optional positional parameters) case is parsed correctly
1921
fails:Parsing a Block (Arity / when multiple positional parameters only) case is parsed correctly
22+
fails:Parsing a Block (Arity / when numbered parameters used in a block) case is parsed correctly
2023
fails:Parsing a Block (Arity / with splat operator and preceding and following parameters) case is parsed correctly
24+
fails:Parsing a Block (Arity / with implicit rest parameter (|a,|)) case is parsed correctly
2125
fails:Parsing a Block (Destructuring array argument / when no rest positional parameter but optional parameters count > 1 - it tries to destruct) case is parsed correctly
2226
fails:Parsing a Block (Destructuring array argument / when no rest positional parameter but required parameters count > 1 - it tries to destruct) case is parsed correctly
2327
fails:Parsing a Block (Destructuring array argument / when no rest positional parameter but one required parameter and one optional one - it tries to destruct) case is parsed correctly
@@ -37,6 +41,7 @@ fails:Parsing a Block (Parameters to local variables / with keyword arguments) c
3741
fails:Parsing a Block (Parameters to local variables / with optional keyword arguments) case is parsed correctly
3842
fails:Parsing a Block (Parameters to local variables / with optional positional parameters) case is parsed correctly
3943
fails:Parsing a Block (Parameters to local variables / when multiple positional parameters only) case is parsed correctly
44+
fails:Parsing a Block (Parameters to local variables / when numbered parameters used in a block) case is parsed correctly
4045
fails:Parsing a Block (Parameters to local variables / with splat operator and preceding and following parameters) case is parsed correctly
4146
fails:Parsing a Block (Parameters to local variables / without parameters) case is parsed correctly
4247
fails:Parsing a Block (Tail expression / with explicit return inside then branch of the `if` operator) case is parsed correctly
@@ -170,10 +175,12 @@ fails:Parsing a Rational number (with Float value) case is parsed correctly
170175
fails:Parsing a Rational number (with Integer value) case is parsed correctly
171176
fails:Parsing a Rational number (with negative value) case is parsed correctly
172177
fails:Parsing a Regexp (Regexp literal in boolean context (e.g. condition in if, while, etc)) case is parsed correctly
178+
fails:Parsing a Regexp (Regexp literal in boolean context with interpolation (e.g. condition in if, while, etc)) case is parsed correctly
173179
fails:Parsing a Regexp (a literal) case is parsed correctly
174180
fails:Parsing a Regexp (a literal with interpolation (with #{...})) case is parsed correctly
175181
fails:Parsing a Regexp (a literal with interpolation but without expression (#{})) case is parsed correctly
176182
fails:Parsing a Regexp (a literal with options (e.g. i, x, m, o)) case is parsed correctly
183+
fails:Parsing a Regexp (with named captured group (/(?<a>b)/)) case is parsed correctly
177184
fails:Parsing a Rescue keyword (backtrace optimization / disabled / when rescue section is Range (... rescue 1..3)) case is parsed correctly
178185
fails:Parsing a Rescue keyword (backtrace optimization / disabled / when rescue section is Regexp (... rescue /a/)) case is parsed correctly
179186
fails:Parsing a Rescue keyword (backtrace optimization / enabled / when rescue section is __FILE__ constant (... rescue __FILE__)) case is parsed correctly
@@ -193,9 +200,11 @@ fails:Parsing a Return (return operator in a block in a class definition body) c
193200
fails:Parsing a Return (return operator in a block in a module definition body) case is parsed correctly
194201
fails:Parsing a Return (return operator in a block without a value) case is parsed correctly
195202
fails:Parsing a Return (return operator in a lambda) case is parsed correctly
196-
fails:Parsing a Return (return operator in a method (with a value)) case is parsed correctly
197-
fails:Parsing a Return (return operator in a method without value) case is parsed correctly
198-
fails:Parsing a Return (return operator with splat operator (return *a)) case is parsed correctly
203+
fails:Parsing a Return (return operator in a lambda in a class definition body) case is parsed correctly
204+
fails:Parsing a Return (return operator in a lambda in a module definition body) case is parsed correctly
205+
fails:Parsing a Return (return operator in a lambda method call) case is parsed correctly
206+
fails:Parsing a Return (return operator in a lambda method call in a class definition body) case is parsed correctly
207+
fails:Parsing a Return (return operator in a lambda method call in a module definition body) case is parsed correctly
199208
fails:Parsing a Sequence of expressions () case is parsed correctly
200209
fails:Parsing a String (Literal with interpolation when when expressions are % String literals) case is parsed correctly
201210
fails:Parsing a String (Literal with interpolation when expressions are Strings) case is parsed correctly

spec/truffle/parsing/fixtures/block/argument_descriptors/with_block.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subject: "Block"
22
description: "Argument descriptors / with block (def a(&b))"
33
notes: >
4-
Method parameters are described (as ArgumentDescriptor[]) in the following way:
4+
Block parameters are described (as ArgumentDescriptor[]) in the following way:
55
- ArgumentDescriptor(name = bar, type = block)
66
77
So a block argument is described as a `block` variable.

spec/truffle/parsing/fixtures/block/argument_descriptors/with_double_splat_operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subject: "Block"
22
description: "Argument descriptors / with double splat operator (**kw)"
33
notes: >
4-
Method parameters are described (as ArgumentDescriptor[]) in the following way:
4+
Block parameters are described (as ArgumentDescriptor[]) in the following way:
55
- ArgumentDescriptor(name = a, type = keyreq)
66
- ArgumentDescriptor(name = b, type = keyreq)
77
- ArgumentDescriptor(name = other, type = keyrest)

spec/truffle/parsing/fixtures/block/argument_descriptors/with_double_splat_operator_without_name.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
subject: "Block"
22
description: "Argument descriptors / with double splat operator without variable name (**)"
33
notes: >
4-
Method parameters are described (as ArgumentDescriptor[]) in the following way:
4+
Block parameters are described (as ArgumentDescriptor[]) in the following way:
55
- ArgumentDescriptor(name = a, type = keyreq)
66
- ArgumentDescriptor(name = b, type = keyreq)
77
- ArgumentDescriptor(name = %kwrest, type = keyrest)

0 commit comments

Comments
 (0)