cucumber-cucumber-expressions 12.1.3 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/VERSION +1 -1
  4. data/lib/cucumber/cucumber_expressions/cucumber_expression_generator.rb +0 -4
  5. data/spec/cucumber/cucumber_expressions/cucumber_expression_generator_spec.rb +14 -14
  6. data/spec/cucumber/cucumber_expressions/cucumber_expression_parser_spec.rb +1 -1
  7. data/spec/cucumber/cucumber_expressions/cucumber_expression_spec.rb +2 -2
  8. data/spec/cucumber/cucumber_expressions/cucumber_expression_tokenizer_spec.rb +1 -1
  9. data/spec/cucumber/cucumber_expressions/regular_expression_spec.rb +4 -0
  10. metadata +4 -114
  11. data/.github/ISSUE_TEMPLATE.md +0 -5
  12. data/.github/PULL_REQUEST_TEMPLATE.md +0 -5
  13. data/.rsync +0 -5
  14. data/.subrepo +0 -1
  15. data/Makefile +0 -1
  16. data/default.mk +0 -93
  17. data/examples.txt +0 -43
  18. data/spec/cucumber/cucumber_expressions/expression_examples_spec.rb +0 -30
  19. data/testdata/ast/alternation-followed-by-optional.yaml +0 -17
  20. data/testdata/ast/alternation-phrase.yaml +0 -16
  21. data/testdata/ast/alternation-with-parameter.yaml +0 -27
  22. data/testdata/ast/alternation-with-unused-end-optional.yaml +0 -15
  23. data/testdata/ast/alternation-with-unused-start-optional.yaml +0 -8
  24. data/testdata/ast/alternation-with-white-space.yaml +0 -12
  25. data/testdata/ast/alternation.yaml +0 -12
  26. data/testdata/ast/anonymous-parameter.yaml +0 -5
  27. data/testdata/ast/closing-brace.yaml +0 -5
  28. data/testdata/ast/closing-parenthesis.yaml +0 -5
  29. data/testdata/ast/empty-alternation.yaml +0 -8
  30. data/testdata/ast/empty-alternations.yaml +0 -9
  31. data/testdata/ast/empty-string.yaml +0 -3
  32. data/testdata/ast/escaped-alternation.yaml +0 -5
  33. data/testdata/ast/escaped-backslash.yaml +0 -5
  34. data/testdata/ast/escaped-opening-parenthesis.yaml +0 -5
  35. data/testdata/ast/escaped-optional-followed-by-optional.yaml +0 -15
  36. data/testdata/ast/escaped-optional-phrase.yaml +0 -10
  37. data/testdata/ast/escaped-optional.yaml +0 -7
  38. data/testdata/ast/opening-brace.yaml +0 -8
  39. data/testdata/ast/opening-parenthesis.yaml +0 -8
  40. data/testdata/ast/optional-containing-nested-optional.yaml +0 -15
  41. data/testdata/ast/optional-phrase.yaml +0 -12
  42. data/testdata/ast/optional.yaml +0 -7
  43. data/testdata/ast/parameter.yaml +0 -7
  44. data/testdata/ast/phrase.yaml +0 -9
  45. data/testdata/ast/unfinished-parameter.yaml +0 -8
  46. data/testdata/expression/allows-escaped-optional-parameter-types.yaml +0 -4
  47. data/testdata/expression/allows-parameter-type-in-alternation-1.yaml +0 -4
  48. data/testdata/expression/allows-parameter-type-in-alternation-2.yaml +0 -4
  49. data/testdata/expression/does-allow-parameter-adjacent-to-alternation.yaml +0 -5
  50. data/testdata/expression/does-not-allow-alternation-in-optional.yaml +0 -9
  51. data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-left-parameter.yaml +0 -10
  52. data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-optional.yaml +0 -9
  53. data/testdata/expression/does-not-allow-alternation-with-empty-alternative-by-adjacent-right-parameter.yaml +0 -9
  54. data/testdata/expression/does-not-allow-alternation-with-empty-alternative.yaml +0 -9
  55. data/testdata/expression/does-not-allow-empty-optional.yaml +0 -9
  56. data/testdata/expression/does-not-allow-nested-optional.yaml +0 -8
  57. data/testdata/expression/does-not-allow-optional-parameter-types.yaml +0 -9
  58. data/testdata/expression/does-not-allow-parameter-name-with-reserved-characters.yaml +0 -10
  59. data/testdata/expression/does-not-allow-unfinished-parenthesis-1.yaml +0 -8
  60. data/testdata/expression/does-not-allow-unfinished-parenthesis-2.yaml +0 -8
  61. data/testdata/expression/does-not-allow-unfinished-parenthesis-3.yaml +0 -8
  62. data/testdata/expression/does-not-match-misquoted-string.yaml +0 -4
  63. data/testdata/expression/doesnt-match-float-as-int.yaml +0 -5
  64. data/testdata/expression/matches-alternation.yaml +0 -4
  65. data/testdata/expression/matches-anonymous-parameter-type.yaml +0 -5
  66. data/testdata/expression/matches-double-quoted-empty-string-as-empty-string-along-with-other-strings.yaml +0 -4
  67. data/testdata/expression/matches-double-quoted-empty-string-as-empty-string.yaml +0 -4
  68. data/testdata/expression/matches-double-quoted-string-with-escaped-double-quote.yaml +0 -4
  69. data/testdata/expression/matches-double-quoted-string-with-single-quotes.yaml +0 -4
  70. data/testdata/expression/matches-double-quoted-string.yaml +0 -4
  71. data/testdata/expression/matches-doubly-escaped-parenthesis.yaml +0 -4
  72. data/testdata/expression/matches-doubly-escaped-slash-1.yaml +0 -4
  73. data/testdata/expression/matches-doubly-escaped-slash-2.yaml +0 -4
  74. data/testdata/expression/matches-escaped-parenthesis-1.yaml +0 -4
  75. data/testdata/expression/matches-escaped-parenthesis-2.yaml +0 -4
  76. data/testdata/expression/matches-escaped-parenthesis-3.yaml +0 -4
  77. data/testdata/expression/matches-escaped-slash.yaml +0 -4
  78. data/testdata/expression/matches-float-1.yaml +0 -5
  79. data/testdata/expression/matches-float-2.yaml +0 -5
  80. data/testdata/expression/matches-int.yaml +0 -5
  81. data/testdata/expression/matches-multiple-double-quoted-strings.yaml +0 -4
  82. data/testdata/expression/matches-multiple-single-quoted-strings.yaml +0 -4
  83. data/testdata/expression/matches-optional-before-alternation-1.yaml +0 -4
  84. data/testdata/expression/matches-optional-before-alternation-2.yaml +0 -4
  85. data/testdata/expression/matches-optional-before-alternation-with-regex-characters-1.yaml +0 -4
  86. data/testdata/expression/matches-optional-before-alternation-with-regex-characters-2.yaml +0 -4
  87. data/testdata/expression/matches-optional-in-alternation-1.yaml +0 -5
  88. data/testdata/expression/matches-optional-in-alternation-2.yaml +0 -5
  89. data/testdata/expression/matches-optional-in-alternation-3.yaml +0 -5
  90. data/testdata/expression/matches-single-quoted-empty-string-as-empty-string-along-with-other-strings.yaml +0 -4
  91. data/testdata/expression/matches-single-quoted-empty-string-as-empty-string.yaml +0 -4
  92. data/testdata/expression/matches-single-quoted-string-with-double-quotes.yaml +0 -4
  93. data/testdata/expression/matches-single-quoted-string-with-escaped-single-quote.yaml +0 -4
  94. data/testdata/expression/matches-single-quoted-string.yaml +0 -4
  95. data/testdata/expression/matches-word.yaml +0 -4
  96. data/testdata/expression/throws-unknown-parameter-type.yaml +0 -10
  97. data/testdata/regex/alternation-with-optional.yaml +0 -2
  98. data/testdata/regex/alternation.yaml +0 -2
  99. data/testdata/regex/empty.yaml +0 -2
  100. data/testdata/regex/escape-regex-characters.yaml +0 -2
  101. data/testdata/regex/optional.yaml +0 -2
  102. data/testdata/regex/parameter.yaml +0 -2
  103. data/testdata/regex/text.yaml +0 -2
  104. data/testdata/regex/unicode.yaml +0 -2
  105. data/testdata/tokens/alternation-phrase.yaml +0 -13
  106. data/testdata/tokens/alternation.yaml +0 -9
  107. data/testdata/tokens/empty-string.yaml +0 -6
  108. data/testdata/tokens/escape-non-reserved-character.yaml +0 -8
  109. data/testdata/tokens/escaped-alternation.yaml +0 -9
  110. data/testdata/tokens/escaped-char-has-start-index-of-text-token.yaml +0 -9
  111. data/testdata/tokens/escaped-end-of-line.yaml +0 -8
  112. data/testdata/tokens/escaped-optional.yaml +0 -7
  113. data/testdata/tokens/escaped-parameter.yaml +0 -7
  114. data/testdata/tokens/escaped-space.yaml +0 -7
  115. data/testdata/tokens/optional-phrase.yaml +0 -13
  116. data/testdata/tokens/optional.yaml +0 -9
  117. data/testdata/tokens/parameter-phrase.yaml +0 -13
  118. data/testdata/tokens/parameter.yaml +0 -9
  119. data/testdata/tokens/phrase.yaml +0 -11
@@ -1,5 +0,0 @@
1
- expression: "}"
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 1, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 1, "token": "}"}
5
- ]}
@@ -1,5 +0,0 @@
1
- expression: )
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 1, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 1, "token": ")"}
5
- ]}
@@ -1,8 +0,0 @@
1
- expression: /
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 1, "nodes": [
4
- {"type": "ALTERNATION_NODE", "start": 0, "end": 1, "nodes": [
5
- {"type": "ALTERNATIVE_NODE", "start": 0, "end": 0, "nodes": []},
6
- {"type": "ALTERNATIVE_NODE", "start": 1, "end": 1, "nodes": []}
7
- ]}
8
- ]}
@@ -1,9 +0,0 @@
1
- expression: '//'
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 2, "nodes": [
4
- {"type": "ALTERNATION_NODE", "start": 0, "end": 2, "nodes": [
5
- {"type": "ALTERNATIVE_NODE", "start": 0, "end": 0, "nodes": []},
6
- {"type": "ALTERNATIVE_NODE", "start": 1, "end": 1, "nodes": []},
7
- {"type": "ALTERNATIVE_NODE", "start": 2, "end": 2, "nodes": []}
8
- ]}
9
- ]}
@@ -1,3 +0,0 @@
1
- expression: ""
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 0, "nodes": []}
@@ -1,5 +0,0 @@
1
- expression: 'mice\/rats'
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 10, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 10, "token": "mice/rats"}
5
- ]}
@@ -1,5 +0,0 @@
1
- expression: '\\'
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 2, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 2, "token": "\\"}
5
- ]}
@@ -1,5 +0,0 @@
1
- expression: '\('
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 2, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 2, "token": "("}
5
- ]}
@@ -1,15 +0,0 @@
1
- expression: three \((very) blind) mice
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 26, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 5, "token": "three"},
5
- {"type": "TEXT_NODE", "start": 5, "end": 6, "token": " "},
6
- {"type": "TEXT_NODE", "start": 6, "end": 8, "token": "("},
7
- {"type": "OPTIONAL_NODE", "start": 8, "end": 14, "nodes": [
8
- {"type": "TEXT_NODE", "start": 9, "end": 13, "token": "very"}
9
- ]},
10
- {"type": "TEXT_NODE", "start": 14, "end": 15, "token": " "},
11
- {"type": "TEXT_NODE", "start": 15, "end": 20, "token": "blind"},
12
- {"type": "TEXT_NODE", "start": 20, "end": 21, "token": ")"},
13
- {"type": "TEXT_NODE", "start": 21, "end": 22, "token": " "},
14
- {"type": "TEXT_NODE", "start": 22, "end": 26, "token": "mice"}
15
- ]}
@@ -1,10 +0,0 @@
1
- expression: three \(blind) mice
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 19, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 5, "token": "three"},
5
- {"type": "TEXT_NODE", "start": 5, "end": 6, "token": " "},
6
- {"type": "TEXT_NODE", "start": 6, "end": 13, "token": "(blind"},
7
- {"type": "TEXT_NODE", "start": 13, "end": 14, "token": ")"},
8
- {"type": "TEXT_NODE", "start": 14, "end": 15, "token": " "},
9
- {"type": "TEXT_NODE", "start": 15, "end": 19, "token": "mice"}
10
- ]}
@@ -1,7 +0,0 @@
1
- expression: '\(blind)'
2
-
3
- expected: |-
4
- {"type": "EXPRESSION_NODE", "start": 0, "end": 8, "nodes": [
5
- {"type": "TEXT_NODE", "start": 0, "end": 7, "token": "(blind"},
6
- {"type": "TEXT_NODE", "start": 7, "end": 8, "token": ")"}
7
- ]}
@@ -1,8 +0,0 @@
1
- expression: '{'
2
- exception: |-
3
- This Cucumber Expression has a problem at column 1:
4
-
5
- {
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: (
2
- exception: |-
3
- This Cucumber Expression has a problem at column 1:
4
-
5
- (
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,15 +0,0 @@
1
- expression: three ((very) blind) mice
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 25, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 5, "token": "three"},
5
- {"type": "TEXT_NODE", "start": 5, "end": 6, "token": " "},
6
- {"type": "OPTIONAL_NODE", "start": 6, "end": 20, "nodes": [
7
- {"type": "OPTIONAL_NODE", "start": 7, "end": 13, "nodes": [
8
- {"type": "TEXT_NODE", "start": 8, "end": 12, "token": "very"}
9
- ]},
10
- {"type": "TEXT_NODE", "start": 13, "end": 14, "token": " "},
11
- {"type": "TEXT_NODE", "start": 14, "end": 19, "token": "blind"}
12
- ]},
13
- {"type": "TEXT_NODE", "start": 20, "end": 21, "token": " "},
14
- {"type": "TEXT_NODE", "start": 21, "end": 25, "token": "mice"}
15
- ]}
@@ -1,12 +0,0 @@
1
- expression: three (blind) mice
2
-
3
- expected: |-
4
- {"type": "EXPRESSION_NODE", "start": 0, "end": 18, "nodes": [
5
- {"type": "TEXT_NODE", "start": 0, "end": 5, "token": "three"},
6
- {"type": "TEXT_NODE", "start": 5, "end": 6, "token": " "},
7
- {"type": "OPTIONAL_NODE", "start": 6, "end": 13, "nodes": [
8
- {"type": "TEXT_NODE", "start": 7, "end": 12, "token": "blind"}
9
- ]},
10
- {"type": "TEXT_NODE", "start": 13, "end": 14, "token": " "},
11
- {"type": "TEXT_NODE", "start": 14, "end": 18, "token": "mice"}
12
- ]}
@@ -1,7 +0,0 @@
1
- expression: (blind)
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 7, "nodes": [
4
- {"type": "OPTIONAL_NODE", "start": 0, "end": 7, "nodes": [
5
- {"type": "TEXT_NODE", "start": 1, "end": 6, "token": "blind"}
6
- ]}
7
- ]}
@@ -1,7 +0,0 @@
1
- expression: "{string}"
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 8, "nodes": [
4
- {"type": "PARAMETER_NODE", "start": 0, "end": 8, "nodes": [
5
- {"type": "TEXT_NODE", "start": 1, "end": 7, "token": "string"}
6
- ]}
7
- ]}
@@ -1,9 +0,0 @@
1
- expression: three blind mice
2
- expected: |-
3
- {"type": "EXPRESSION_NODE", "start": 0, "end": 16, "nodes": [
4
- {"type": "TEXT_NODE", "start": 0, "end": 5, "token": "three"},
5
- {"type": "TEXT_NODE", "start": 5, "end": 6, "token": " "},
6
- {"type": "TEXT_NODE", "start": 6, "end": 11, "token": "blind"},
7
- {"type": "TEXT_NODE", "start": 11, "end": 12, "token": " "},
8
- {"type": "TEXT_NODE", "start": 12, "end": 16, "token": "mice"}
9
- ]}
@@ -1,8 +0,0 @@
1
- expression: "{string"
2
- exception: |-
3
- This Cucumber Expression has a problem at column 1:
4
-
5
- {string
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,4 +0,0 @@
1
- expression: \({int})
2
- text: (3)
3
- expected: |-
4
- [3]
@@ -1,4 +0,0 @@
1
- expression: a/i{int}n/y
2
- text: i18n
3
- expected: |-
4
- [18]
@@ -1,4 +0,0 @@
1
- expression: a/i{int}n/y
2
- text: a11y
3
- expected: |-
4
- [11]
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {int}st/nd/rd/th
3
- text: 3rd
4
- expected: |-
5
- [3]
@@ -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 '/'
@@ -1,10 +0,0 @@
1
- expression: |-
2
- {int}/x
3
- text: '3'
4
- exception: |-
5
- This Cucumber Expression has a problem at column 6:
6
-
7
- {int}/x
8
- ^
9
- Alternative may not be empty.
10
- If you did not mean to use an alternative 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 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: x/{int}
2
- text: '3'
3
- exception: |-
4
- This Cucumber Expression has a problem at column 3:
5
-
6
- x/{int}
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,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,9 +0,0 @@
1
- expression: three () mice
2
- text: three brown mice
3
- exception: |-
4
- This Cucumber Expression has a problem at column 7:
5
-
6
- three () mice
7
- ^^
8
- An optional must contain some text.
9
- If you did not mean to use an optional 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,9 +0,0 @@
1
- expression: ({int})
2
- text: '3'
3
- exception: |-
4
- This Cucumber Expression has a problem at column 2:
5
-
6
- ({int})
7
- ^---^
8
- An optional may not contain a parameter type.
9
- If you did not mean to use an parameter type you can use '\{' to escape the the '{'
@@ -1,10 +0,0 @@
1
- expression: |-
2
- {(string)}
3
- text: something
4
- exception: |-
5
- This Cucumber Expression has a problem at column 2:
6
-
7
- {(string)}
8
- ^
9
- Parameter names may not contain '{', '}', '(', ')', '\' or '/'.
10
- Did you mean to use a regular expression?
@@ -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
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three "blind' mice
3
- expected: |-
4
- null
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {int}
3
- text: '1.22'
4
- expected: |-
5
- null
@@ -1,4 +0,0 @@
1
- expression: mice/rats and rats\/mice
2
- text: rats and rats/mice
3
- expected: |-
4
- []
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {}
3
- text: '0.22'
4
- expected: |-
5
- ["0.22"]
@@ -1,4 +0,0 @@
1
- expression: three {string} and {string} mice
2
- text: three "" and "handsome" mice
3
- expected: |-
4
- ["","handsome"]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three "" mice
3
- expected: |-
4
- [""]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three "bl\"nd" mice
3
- expected: |-
4
- ["bl\"nd"]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three "'blind'" mice
3
- expected: |-
4
- ["'blind'"]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three "blind" mice
3
- expected: |-
4
- ["blind"]
@@ -1,4 +0,0 @@
1
- expression: three \\(exceptionally) \\{string} mice
2
- text: three \exceptionally \"blind" mice
3
- expected: |-
4
- ["blind"]
@@ -1,4 +0,0 @@
1
- expression: 12\\/2020
2
- text: 12\
3
- expected: |-
4
- []
@@ -1,4 +0,0 @@
1
- expression: 12\\/2020
2
- text: '2020'
3
- expected: |-
4
- []
@@ -1,4 +0,0 @@
1
- expression: three \(exceptionally) \{string} mice
2
- text: three (exceptionally) {string} mice
3
- expected: |-
4
- []
@@ -1,4 +0,0 @@
1
- expression: three \((exceptionally)) \{{string}} mice
2
- text: three (exceptionally) {"blind"} mice
3
- expected: |-
4
- ["blind"]
@@ -1,4 +0,0 @@
1
- expression: three \((exceptionally)) \{{string}} mice
2
- text: three (exceptionally) {"blind"} mice
3
- expected: |-
4
- ["blind"]
@@ -1,4 +0,0 @@
1
- expression: 12\/2020
2
- text: 12/2020
3
- expected: |-
4
- []
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {float}
3
- text: '0.22'
4
- expected: |-
5
- [0.22]
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {float}
3
- text: '.22'
4
- expected: |-
5
- [0.22]
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {int}
3
- text: '22'
4
- expected: |-
5
- [22]
@@ -1,4 +0,0 @@
1
- expression: three {string} and {string} mice
2
- text: three "blind" and "crippled" mice
3
- expected: |-
4
- ["blind","crippled"]
@@ -1,4 +0,0 @@
1
- expression: three {string} and {string} mice
2
- text: three 'blind' and 'crippled' mice
3
- expected: |-
4
- ["blind","crippled"]
@@ -1,4 +0,0 @@
1
- expression: three (brown )mice/rats
2
- text: three brown mice
3
- expected: |-
4
- []
@@ -1,4 +0,0 @@
1
- expression: three (brown )mice/rats
2
- text: three rats
3
- expected: |-
4
- []
@@ -1,4 +0,0 @@
1
- expression: I wait {int} second(s)./second(s)?
2
- text: I wait 2 seconds?
3
- expected: |-
4
- [2]
@@ -1,4 +0,0 @@
1
- expression: I wait {int} second(s)./second(s)?
2
- text: I wait 1 second.
3
- expected: |-
4
- [1]
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {int} rat(s)/mouse/mice
3
- text: 3 rats
4
- expected: |-
5
- [3]
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {int} rat(s)/mouse/mice
3
- text: 2 mice
4
- expected: |-
5
- [2]
@@ -1,5 +0,0 @@
1
- expression: |-
2
- {int} rat(s)/mouse/mice
3
- text: 1 mouse
4
- expected: |-
5
- [1]
@@ -1,4 +0,0 @@
1
- expression: three {string} and {string} mice
2
- text: three '' and 'handsome' mice
3
- expected: |-
4
- ["","handsome"]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three '' mice
3
- expected: |-
4
- [""]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three '"blind"' mice
3
- expected: |-
4
- ["\"blind\""]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three 'bl\'nd' mice
3
- expected: |-
4
- ["bl'nd"]
@@ -1,4 +0,0 @@
1
- expression: three {string} mice
2
- text: three 'blind' mice
3
- expected: |-
4
- ["blind"]
@@ -1,4 +0,0 @@
1
- expression: three {word} mice
2
- text: three blind mice
3
- expected: |-
4
- ["blind"]
@@ -1,10 +0,0 @@
1
- expression: |-
2
- {unknown}
3
- text: something
4
- exception: |-
5
- This Cucumber Expression has a problem at column 1:
6
-
7
- {unknown}
8
- ^-------^
9
- Undefined parameter type 'unknown'.
10
- Please register a ParameterType for 'unknown'
@@ -1,2 +0,0 @@
1
- expression: "a/b(c)"
2
- expected: ^(?:a|b(?:c)?)$
@@ -1,2 +0,0 @@
1
- expression: "a/b c/d/e"
2
- expected: ^(?:a|b) (?:c|d|e)$
@@ -1,2 +0,0 @@
1
- expression: ""
2
- expected: ^$
@@ -1,2 +0,0 @@
1
- expression: '^$[]\(\){}\\.|?*+'
2
- expected: ^\^\$\[\]\(\)(.*)\\\.\|\?\*\+$
@@ -1,2 +0,0 @@
1
- expression: "(a)"
2
- expected: ^(?:a)?$
@@ -1,2 +0,0 @@
1
- expression: "{int}"
2
- expected: ^((?:-?\d+)|(?:\d+))$
@@ -1,2 +0,0 @@
1
- expression: "a"
2
- expected: ^a$
@@ -1,2 +0,0 @@
1
- expression: "Привет, Мир(ы)!"
2
- expected: ^Привет, Мир(?:ы)?!$
@@ -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
- ]