1bdd icon indicating copy to clipboard operation
1bdd copied to clipboard

Различные варианты многострочного текста или вложенных строк

Open artbear opened this issue 9 years ago • 0 comments

Originally reported by: artbear (Bitbucket: artbear, GitHub: artbear)


Пример из Gherkin

#!gherkin

Feature: DocString variations

  Scenario: minimalistic
    Given a simple DocString
      """
      first line (no indent)
        second line (indented with two spaces)
      third line was empty
      """
    Given a DocString with content type
      """xml
      <foo>
        <bar />
      </foo>
      """
    And a DocString with wrong indentation
      """
    wrongly indented line
      """
    And a DocString with alternative separator
      ```
      first line
      second line
      ```
    And a DocString with normal separator inside
      ```
      first line
      """
      third line
      ```
    And a DocString with alternative separator inside
      """
      first line
      ```
      third line
      """
    And a DocString with escaped separator inside
      """
      first line
      \"\"\"
      third line
      """ 

  • Bitbucket: https://bitbucket.org/artbear/bdd-for-oscript/issue/36

artbear avatar May 09 '16 12:05 artbear