Sha256: 9714800a7b6e222e78b05b1d558341b363e4516d32f2ab84b520b390a3d9f9ba

Contents?: true

Size: 1.38 KB

Versions: 29

Compression:

Stored size: 1.38 KB

Contents

Feature: Catches Broken Puzzles
  As a source code writer I want to be sure that
  broken puzzles won't be processed and will
  cause runtime errors

  Scenario: Throwing exception on broken puzzles
    Given I have a "Sample.java" file with content:
    """
    public class Main {
      /**
       * @todo #13 This puzzle has an incorrect format
       * because it doesn't start with a space on
       * the second and the third lines
       */
      public void main(String[] args) {
        // later
      }
    }
    """
    When I run pdd it fails with "Space expected"

  Scenario: Throwing exception on another broken puzzle
    Given I have a "Sample.java" file with content:
    """
    public class Main {
      /**
       * @todo #13 This puzzle has an incorrect format
       *    because its second line starts with too many spaces
       */
      public void main(String[] args) {
        // later
      }
    }
    """
    When I run pdd it fails with "Too many spaces"

  Scenario: Throwing exception on yet another broken puzzle
    Given I have a "Sample.java" file with content:
    """
    public class Main {
      //
      // @todo #13 This puzzle has an incorrect format
      // because there is no space character in the
      // second and third lines
      //
      public void main(String[] args) {
        // later
      }
    }
    """
    When I run pdd it fails with "Space expected"

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
pdd-0.17.4 features/catches_broken_puzzles.feature
pdd-0.17.3 features/catches_broken_puzzles.feature
pdd-0.17.2 features/catches_broken_puzzles.feature
pdd-0.17.1 features/catches_broken_puzzles.feature
pdd-0.17 features/catches_broken_puzzles.feature
pdd-0.16.4 features/catches_broken_puzzles.feature
pdd-0.16.3 features/catches_broken_puzzles.feature
pdd-0.16.2 features/catches_broken_puzzles.feature
pdd-0.16.1 features/catches_broken_puzzles.feature
pdd-0.16 features/catches_broken_puzzles.feature
pdd-0.15.4 features/catches_broken_puzzles.feature
pdd-0.15.3 features/catches_broken_puzzles.feature
pdd-0.15.2 features/catches_broken_puzzles.feature
pdd-0.15.1 features/catches_broken_puzzles.feature
pdd-0.15 features/catches_broken_puzzles.feature
pdd-0.14.4 features/catches_broken_puzzles.feature
pdd-0.14.3 features/catches_broken_puzzles.feature
pdd-0.14.2 features/catches_broken_puzzles.feature
pdd-0.14.1 features/catches_broken_puzzles.feature
pdd-0.14 features/catches_broken_puzzles.feature