Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions testdata/good/prefixed-keywords.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# language: ht
Karakteristik: Keywords can be a prefix of another
Some times keywords are a prefix of another keyword.
In this scenario the parser should prefer the longest keyword.

Senaryo: Erasing agent memory
Sipoze ke there is agent J
Ak there is agent K
Le I erase agent K's memory
Le sa a there should be agent J
Men there should not be agent K
1 change: 1 addition & 0 deletions testdata/good/prefixed-keywords.feature.ast.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"gherkinDocument": {"comments": [], "feature": {"children": [{"scenario": {"description": "", "examples": [], "id": "5", "keyword": "Senaryo", "location": {"column": 3, "line": 6}, "name": "Erasing agent memory", "steps": [{"id": "0", "keyword": "Sipoze ke ", "keywordType": "Context", "location": {"column": 5, "line": 7}, "text": "there is agent J"}, {"id": "1", "keyword": "Ak ", "keywordType": "Conjunction", "location": {"column": 5, "line": 8}, "text": "there is agent K"}, {"id": "2", "keyword": "Le ", "keywordType": "Action", "location": {"column": 5, "line": 9}, "text": "I erase agent K's memory"}, {"id": "3", "keyword": "Le sa a ", "keywordType": "Outcome", "location": {"column": 5, "line": 10}, "text": "there should be agent J"}, {"id": "4", "keyword": "Men ", "keywordType": "Conjunction", "location": {"column": 5, "line": 11}, "text": "there should not be agent K"}], "tags": []}}], "description": " Some times keywords are a prefix of another keyword.\n In this scenario the parser should prefer the longest keyword.", "keyword": "Karakteristik", "language": "ht", "location": {"column": 1, "line": 2}, "name": "Keywords can be a prefix of another", "tags": []}, "uri": "../testdata/good/prefixed-keywords.feature"}}
1 change: 1 addition & 0 deletions testdata/good/prefixed-keywords.feature.pickles.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"pickle": {"astNodeIds": ["5"], "id": "11", "language": "ht", "name": "Erasing agent memory", "steps": [{"astNodeIds": ["0"], "id": "6", "text": "there is agent J", "type": "Context"}, {"astNodeIds": ["1"], "id": "7", "text": "there is agent K", "type": "Context"}, {"astNodeIds": ["2"], "id": "8", "text": "I erase agent K's memory", "type": "Action"}, {"astNodeIds": ["3"], "id": "9", "text": "there should be agent J", "type": "Outcome"}, {"astNodeIds": ["4"], "id": "10", "text": "there should not be agent K", "type": "Outcome"}], "tags": [], "uri": "../testdata/good/prefixed-keywords.feature"}}
1 change: 1 addition & 0 deletions testdata/good/prefixed-keywords.feature.source.ndjson
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"source": {"data": "# language: ht\nKarakteristik: Keywords can be a prefix of another\n Some times keywords are a prefix of another keyword.\n In this scenario the parser should prefer the longest keyword.\n\n Senaryo: Erasing agent memory\n Sipoze ke there is agent J\n Ak there is agent K\n Le I erase agent K's memory\n Le sa a there should be agent J\n Men there should not be agent K\n", "mediaType": "text/x.cucumber.gherkin+plain", "uri": "../testdata/good/prefixed-keywords.feature"}}
12 changes: 12 additions & 0 deletions testdata/good/prefixed-keywords.feature.tokens
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
(1:1)Language:/ht/
(2:1)FeatureLine:()Karakteristik/Keywords can be a prefix of another/
(3:1)Other:/ Some times keywords are a prefix of another keyword./
(4:1)Other:/ In this scenario the parser should prefer the longest keyword./
(5:1)Other://
(6:3)ScenarioLine:()Senaryo/Erasing agent memory/
(7:5)StepLine:(Context)Sipoze ke /there is agent J/
(8:5)StepLine:(Conjunction)Ak /there is agent K/
(9:5)StepLine:(Action)Le /I erase agent K's memory/
(10:5)StepLine:(Outcome)Le sa a /there should be agent J/
(11:5)StepLine:(Conjunction)Men /there should not be agent K/
EOF
Loading