Skip to content

Commit

Permalink
Add test case for \n in table cells
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Herter committed Feb 21, 2023
1 parent 0866555 commit d6f88c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ghokin/fixtures/escape-newline.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Feature: Test

Scenario: Newline in table value
Given I have a table:
| a | b \n c | \n d | \n e \n |
| f | g | h | i |
4 changes: 4 additions & 0 deletions ghokin/transformer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ func TestTransform(t *testing.T) {
"fixtures/escape-pipe.feature",
"fixtures/escape-pipe.feature",
},
{
"fixtures/escape-newline.feature",
"fixtures/escape-newline.feature",
},
{
"fixtures/several-scenario-following.feature",
"fixtures/several-scenario-following.feature",
Expand Down

0 comments on commit d6f88c6

Please sign in to comment.