cucumber-cucumber-expressions 13.0.1 → 13.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/spec/cucumber/cucumber_expressions/cucumber_expression_parser_spec.rb +1 -1
- data/spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb +2 -2
- data/spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb +1 -1
- metadata +4 -112
- data/.github/ISSUE_TEMPLATE.md +0 -5
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -5
- data/.rsync +0 -5
- data/.subrepo +0 -1
- data/examples.txt +0 -43
- data/spec/cucumber/cucumber_expressions/expression_examples_spec.rb +0 -30
- data/testdata/ast/alternation-followed-by-optional.yaml +0 -17
- data/testdata/ast/alternation-phrase.yaml +0 -16
- data/testdata/ast/alternation-with-parameter.yaml +0 -27
- data/testdata/ast/alternation-with-unused-end-optional.yaml +0 -15
- data/testdata/ast/alternation-with-unused-start-optional.yaml +0 -8
- data/testdata/ast/alternation-with-white-space.yaml +0 -12
- data/testdata/ast/alternation.yaml +0 -12
- data/testdata/ast/anonymous-parameter.yaml +0 -5
- data/testdata/ast/closing-brace.yaml +0 -5
- data/testdata/ast/closing-parenthesis.yaml +0 -5
- data/testdata/ast/empty-alternation.yaml +0 -8
- data/testdata/ast/empty-alternations.yaml +0 -9
- data/testdata/ast/empty-string.yaml +0 -3
- data/testdata/ast/escaped-alternation.yaml +0 -5
- data/testdata/ast/escaped-backslash.yaml +0 -5
- data/testdata/ast/escaped-opening-parenthesis.yaml +0 -5
- data/testdata/ast/escaped-optional-followed-by-optional.yaml +0 -15
- data/testdata/ast/escaped-optional-phrase.yaml +0 -10
- data/testdata/ast/escaped-optional.yaml +0 -7
- data/testdata/ast/opening-brace.yaml +0 -8
- data/testdata/ast/opening-parenthesis.yaml +0 -8
- data/testdata/ast/optional-containing-nested-optional.yaml +0 -15
- data/testdata/ast/optional-phrase.yaml +0 -12
- data/testdata/ast/optional.yaml +0 -7
- data/testdata/ast/parameter.yaml +0 -7
- data/testdata/ast/phrase.yaml +0 -9
- data/testdata/ast/unfinished-parameter.yaml +0 -8
- data/testdata/expression/allows-escaped-optional-parameter-types.yaml +0 -4
- data/testdata/expression/allows-parameter-type-in-alternation-1.yaml +0 -4
- data/testdata/expression/allows-parameter-type-in-alternation-2.yaml +0 -4
- data/testdata/expression/does-allow-parameter-adjacent-to-alternation.yaml +0 -5
- data/testdata/expression/does-not-allow-alternation-in-optional.yaml +0 -9
- data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-left-parameter.yaml +0 -10
- data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-optional.yaml +0 -9
- data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-right-parameter.yaml +0 -9
- data/testdata/expression/does-not-allow-alternation-with-empty-alternative.yaml +0 -9
- data/testdata/expression/does-not-allow-empty-optional.yaml +0 -9
- data/testdata/expression/does-not-allow-nested-optional.yaml +0 -8
- data/testdata/expression/does-not-allow-optional-parameter-types.yaml +0 -9
- data/testdata/expression/does-not-allow-parameter-name-with-reserved-characters.yaml +0 -10
- data/testdata/expression/does-not-allow-unfinished-parenthesis-1.yaml +0 -8
- data/testdata/expression/does-not-allow-unfinished-parenthesis-2.yaml +0 -8
- data/testdata/expression/does-not-allow-unfinished-parenthesis-3.yaml +0 -8
- data/testdata/expression/does-not-match-misquoted-string.yaml +0 -4
- data/testdata/expression/doesnt-match-float-as-int.yaml +0 -5
- data/testdata/expression/matches-alternation.yaml +0 -4
- data/testdata/expression/matches-anonymous-parameter-type.yaml +0 -5
- data/testdata/expression/matches-double-quoted-empty-string-as-empty-string-along-with-other-strings.yaml +0 -4
- data/testdata/expression/matches-double-quoted-empty-string-as-empty-string.yaml +0 -4
- data/testdata/expression/matches-double-quoted-string-with-escaped-double-quote.yaml +0 -4
- data/testdata/expression/matches-double-quoted-string-with-single-quotes.yaml +0 -4
- data/testdata/expression/matches-double-quoted-string.yaml +0 -4
- data/testdata/expression/matches-doubly-escaped-parenthesis.yaml +0 -4
- data/testdata/expression/matches-doubly-escaped-slash-1.yaml +0 -4
- data/testdata/expression/matches-doubly-escaped-slash-2.yaml +0 -4
- data/testdata/expression/matches-escaped-parenthesis-1.yaml +0 -4
- data/testdata/expression/matches-escaped-parenthesis-2.yaml +0 -4
- data/testdata/expression/matches-escaped-parenthesis-3.yaml +0 -4
- data/testdata/expression/matches-escaped-slash.yaml +0 -4
- data/testdata/expression/matches-float-1.yaml +0 -5
- data/testdata/expression/matches-float-2.yaml +0 -5
- data/testdata/expression/matches-int.yaml +0 -5
- data/testdata/expression/matches-multiple-double-quoted-strings.yaml +0 -4
- data/testdata/expression/matches-multiple-single-quoted-strings.yaml +0 -4
- data/testdata/expression/matches-optional-before-alternation-1.yaml +0 -4
- data/testdata/expression/matches-optional-before-alternation-2.yaml +0 -4
- data/testdata/expression/matches-optional-before-alternation-with-regex-characters-1.yaml +0 -4
- data/testdata/expression/matches-optional-before-alternation-with-regex-characters-2.yaml +0 -4
- data/testdata/expression/matches-optional-in-alternation-1.yaml +0 -5
- data/testdata/expression/matches-optional-in-alternation-2.yaml +0 -5
- data/testdata/expression/matches-optional-in-alternation-3.yaml +0 -5
- data/testdata/expression/matches-single-quoted-empty-string-as-empty-string-along-with-other-strings.yaml +0 -4
- data/testdata/expression/matches-single-quoted-empty-string-as-empty-string.yaml +0 -4
- data/testdata/expression/matches-single-quoted-string-with-double-quotes.yaml +0 -4
- data/testdata/expression/matches-single-quoted-string-with-escaped-single-quote.yaml +0 -4
- data/testdata/expression/matches-single-quoted-string.yaml +0 -4
- data/testdata/expression/matches-word.yaml +0 -4
- data/testdata/expression/throws-unknown-parameter-type.yaml +0 -10
- data/testdata/regex/alternation-with-optional.yaml +0 -2
- data/testdata/regex/alternation.yaml +0 -2
- data/testdata/regex/empty.yaml +0 -2
- data/testdata/regex/escape-regex-characters.yaml +0 -2
- data/testdata/regex/optional.yaml +0 -2
- data/testdata/regex/parameter.yaml +0 -2
- data/testdata/regex/text.yaml +0 -2
- data/testdata/regex/unicode.yaml +0 -2
- data/testdata/tokens/alternation-phrase.yaml +0 -13
- data/testdata/tokens/alternation.yaml +0 -9
- data/testdata/tokens/empty-string.yaml +0 -6
- data/testdata/tokens/escape-non-reserved-character.yaml +0 -8
- data/testdata/tokens/escaped-alternation.yaml +0 -9
- data/testdata/tokens/escaped-char-has-start-index-of-text-token.yaml +0 -9
- data/testdata/tokens/escaped-end-of-line.yaml +0 -8
- data/testdata/tokens/escaped-optional.yaml +0 -7
- data/testdata/tokens/escaped-parameter.yaml +0 -7
- data/testdata/tokens/escaped-space.yaml +0 -7
- data/testdata/tokens/optional-phrase.yaml +0 -13
- data/testdata/tokens/optional.yaml +0 -9
- data/testdata/tokens/parameter-phrase.yaml +0 -13
- data/testdata/tokens/parameter.yaml +0 -9
- data/testdata/tokens/phrase.yaml +0 -11
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: three( brown/black) mice
|
2
|
-
text: three brown/black mice
|
3
|
-
exception: |-
|
4
|
-
This Cucumber Expression has a problem at column 13:
|
5
|
-
|
6
|
-
three( brown/black) mice
|
7
|
-
^
|
8
|
-
An alternation can not be used inside an optional.
|
9
|
-
You can use '\/' to escape the the '/'
|
data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-optional.yaml
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: three (brown)/black mice
|
2
|
-
text: three brown mice
|
3
|
-
exception: |-
|
4
|
-
This Cucumber Expression has a problem at column 7:
|
5
|
-
|
6
|
-
three (brown)/black mice
|
7
|
-
^-----^
|
8
|
-
An alternative may not exclusively contain optionals.
|
9
|
-
If you did not mean to use an optional you can use '\(' to escape the the '('
|
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: three brown//black mice
|
2
|
-
text: three brown mice
|
3
|
-
exception: |-
|
4
|
-
This Cucumber Expression has a problem at column 13:
|
5
|
-
|
6
|
-
three brown//black mice
|
7
|
-
^
|
8
|
-
Alternative may not be empty.
|
9
|
-
If you did not mean to use an alternative you can use '\/' to escape the the '/'
|
@@ -1,8 +0,0 @@
|
|
1
|
-
expression: "(a(b))"
|
2
|
-
exception: |-
|
3
|
-
This Cucumber Expression has a problem at column 3:
|
4
|
-
|
5
|
-
(a(b))
|
6
|
-
^-^
|
7
|
-
An optional may not contain an other optional.
|
8
|
-
If you did not mean to use an optional type you can use '\(' to escape the the '('. For more complicated expressions consider using a regular expression instead.
|
@@ -1,8 +0,0 @@
|
|
1
|
-
expression: three (exceptionally\) {string\} mice
|
2
|
-
exception: |-
|
3
|
-
This Cucumber Expression has a problem at column 24:
|
4
|
-
|
5
|
-
three (exceptionally\) {string\} mice
|
6
|
-
^
|
7
|
-
The '{' does not have a matching '}'.
|
8
|
-
If you did not intend to use a parameter you can use '\{' to escape the a parameter
|
@@ -1,8 +0,0 @@
|
|
1
|
-
expression: three (exceptionally\) {string} mice
|
2
|
-
exception: |-
|
3
|
-
This Cucumber Expression has a problem at column 7:
|
4
|
-
|
5
|
-
three (exceptionally\) {string} mice
|
6
|
-
^
|
7
|
-
The '(' does not have a matching ')'.
|
8
|
-
If you did not intend to use optional text you can use '\(' to escape the optional text
|
@@ -1,8 +0,0 @@
|
|
1
|
-
expression: three ((exceptionally\) strong) mice
|
2
|
-
exception: |-
|
3
|
-
This Cucumber Expression has a problem at column 7:
|
4
|
-
|
5
|
-
three ((exceptionally\) strong) mice
|
6
|
-
^
|
7
|
-
The '(' does not have a matching ')'.
|
8
|
-
If you did not intend to use optional text you can use '\(' to escape the optional text
|
data/testdata/regex/empty.yaml
DELETED
data/testdata/regex/text.yaml
DELETED
data/testdata/regex/unicode.yaml
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
expression: three blind/cripple mice
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "TEXT", "start": 0, "end": 5, "text": "three"},
|
6
|
-
{"type": "WHITE_SPACE", "start": 5, "end": 6, "text": " "},
|
7
|
-
{"type": "TEXT", "start": 6, "end": 11, "text": "blind"},
|
8
|
-
{"type": "ALTERNATION", "start": 11, "end": 12, "text": "/"},
|
9
|
-
{"type": "TEXT", "start": 12, "end": 19, "text": "cripple"},
|
10
|
-
{"type": "WHITE_SPACE", "start": 19, "end": 20, "text": " "},
|
11
|
-
{"type": "TEXT", "start": 20, "end": 24, "text": "mice"},
|
12
|
-
{"type": "END_OF_LINE", "start": 24, "end": 24, "text": ""}
|
13
|
-
]
|
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: blind/cripple
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "TEXT", "start": 0, "end": 5, "text": "blind"},
|
6
|
-
{"type": "ALTERNATION", "start": 5, "end": 6, "text": "/"},
|
7
|
-
{"type": "TEXT", "start": 6, "end": 13, "text": "cripple"},
|
8
|
-
{"type": "END_OF_LINE", "start": 13, "end": 13, "text": ""}
|
9
|
-
]
|
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: blind\ and\ famished\/cripple mice
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "TEXT", "start": 0, "end": 29, "text": "blind and famished/cripple"},
|
6
|
-
{"type": "WHITE_SPACE", "start": 29, "end": 30, "text": " "},
|
7
|
-
{"type": "TEXT", "start": 30, "end": 34, "text": "mice"},
|
8
|
-
{"type": "END_OF_LINE", "start": 34, "end": 34, "text": ""}
|
9
|
-
]
|
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: ' \/ '
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "WHITE_SPACE", "start": 0, "end": 1, "text": " "},
|
6
|
-
{"type": "TEXT", "start": 1, "end": 3, "text": "/"},
|
7
|
-
{"type": "WHITE_SPACE", "start": 3, "end": 4, "text": " "},
|
8
|
-
{"type": "END_OF_LINE", "start": 4, "end": 4, "text": ""}
|
9
|
-
]
|
@@ -1,13 +0,0 @@
|
|
1
|
-
expression: three (blind) mice
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "TEXT", "start": 0, "end": 5, "text": "three"},
|
6
|
-
{"type": "WHITE_SPACE", "start": 5, "end": 6, "text": " "},
|
7
|
-
{"type": "BEGIN_OPTIONAL", "start": 6, "end": 7, "text": "("},
|
8
|
-
{"type": "TEXT", "start": 7, "end": 12, "text": "blind"},
|
9
|
-
{"type": "END_OPTIONAL", "start": 12, "end": 13, "text": ")"},
|
10
|
-
{"type": "WHITE_SPACE", "start": 13, "end": 14, "text": " "},
|
11
|
-
{"type": "TEXT", "start": 14, "end": 18, "text": "mice"},
|
12
|
-
{"type": "END_OF_LINE", "start": 18, "end": 18, "text": ""}
|
13
|
-
]
|
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: (blind)
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "BEGIN_OPTIONAL", "start": 0, "end": 1, "text": "("},
|
6
|
-
{"type": "TEXT", "start": 1, "end": 6, "text": "blind"},
|
7
|
-
{"type": "END_OPTIONAL", "start": 6, "end": 7, "text": ")"},
|
8
|
-
{"type": "END_OF_LINE", "start": 7, "end": 7, "text": ""}
|
9
|
-
]
|
@@ -1,13 +0,0 @@
|
|
1
|
-
expression: three {string} mice
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "TEXT", "start": 0, "end": 5, "text": "three"},
|
6
|
-
{"type": "WHITE_SPACE", "start": 5, "end": 6, "text": " "},
|
7
|
-
{"type": "BEGIN_PARAMETER", "start": 6, "end": 7, "text": "{"},
|
8
|
-
{"type": "TEXT", "start": 7, "end": 13, "text": "string"},
|
9
|
-
{"type": "END_PARAMETER", "start": 13, "end": 14, "text": "}"},
|
10
|
-
{"type": "WHITE_SPACE", "start": 14, "end": 15, "text": " "},
|
11
|
-
{"type": "TEXT", "start": 15, "end": 19, "text": "mice"},
|
12
|
-
{"type": "END_OF_LINE", "start": 19, "end": 19, "text": ""}
|
13
|
-
]
|
@@ -1,9 +0,0 @@
|
|
1
|
-
expression: "{string}"
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "BEGIN_PARAMETER", "start": 0, "end": 1, "text": "{"},
|
6
|
-
{"type": "TEXT", "start": 1, "end": 7, "text": "string"},
|
7
|
-
{"type": "END_PARAMETER", "start": 7, "end": 8, "text": "}"},
|
8
|
-
{"type": "END_OF_LINE", "start": 8, "end": 8, "text": ""}
|
9
|
-
]
|
data/testdata/tokens/phrase.yaml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
expression: three blind mice
|
2
|
-
expected: |-
|
3
|
-
[
|
4
|
-
{"type": "START_OF_LINE", "start": 0, "end": 0, "text": ""},
|
5
|
-
{"type": "TEXT", "start": 0, "end": 5, "text": "three"},
|
6
|
-
{"type": "WHITE_SPACE", "start": 5, "end": 6, "text": " "},
|
7
|
-
{"type": "TEXT", "start": 6, "end": 11, "text": "blind"},
|
8
|
-
{"type": "WHITE_SPACE", "start": 11, "end": 12, "text": " "},
|
9
|
-
{"type": "TEXT", "start": 12, "end": 16, "text": "mice"},
|
10
|
-
{"type": "END_OF_LINE", "start": 16, "end": 16, "text": ""}
|
11
|
-
]
|