-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape newline characters in table cells
Resolve #51
- Loading branch information
1 parent
63fd988
commit 241ba0d
Showing
3 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/data/valid/special_characters_in_table_cell/expected_default.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Feature: Breaking gherkin reformatter | ||
|
||
Scenario Outline: | ||
Given I want to cause a bug | ||
When I try to reformat with an example table with a message like <message> | ||
Then gherkin reformatter explodes | ||
|
||
Examples: | ||
| message | | ||
| a\| b\n c\r d\t e\r\n f | |
10 changes: 10 additions & 0 deletions
10
tests/data/valid/special_characters_in_table_cell/input.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Feature: Breaking gherkin reformatter | ||
|
||
Scenario Outline: | ||
Given I want to cause a bug | ||
When I try to reformat with an example table with a message like <message> | ||
Then gherkin reformatter explodes | ||
|
||
Examples: | ||
| message | | ||
| a\| b\n c\r d\t e\r\n f\n | |