Sha256: f418d0ac63b38eea266d4ac0d37b1d3301cbb03750d7aad841bf3556d7087fd7

Contents?: true

Size: 1.45 KB

Versions: 66

Compression:

Stored size: 1.45 KB

Contents

Feature: Fibonacci
  In order to calculate super fast fibonacci series
  As a Javascriptist
  I want to use Javascript for that

  Scenario Outline: Series
    When I ask Javascript to calculate fibonacci up to <n>
    Then it should give me <series>

    Examples:
      | n   | series                                 |
      | 1   | []                                     |
      | 2   | [1, 1]                                 |
      | 3   | [1, 1, 2]                              |
      | 4   | [1, 1, 2, 3]                           |
      | 6   | [1, 1, 2, 3, 5]                        |
      | 9   | [1, 1, 2, 3, 5, 8]                     |
      | 100 | [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89] |

  Scenario: Single series tested via a DocString
    When I ask Javascript to calculate fibonacci up to 2 with formatting
    Then it should give me:
    """

    '[1, 1]'

    """

  Scenario: Single series tested via a Step Table
    When I ask Javascript to calculate fibonacci up to 2
    Then it should contain:
    | cell 1 | cell 2 |
    |   1    |   1    |

  @do-fibonnacci-in-before-hook @reviewed
  Scenario: Single series with Before hook with a tag label
    Then it should give me [1, 1, 2]

  Scenario: Single series by calling a step from within a step
    Then it should give me [1, 1] via calling another step definition

  Scenario: Single series by calling multiple steps from within a step
    Then it should calculate fibonacci up to 2 giving me [1, 1]

Version data entries

66 entries across 64 versions & 9 rubygems

Version Path
cucumber-1.3.20 examples/v8/features/fibonacci.feature
cucumber-1.3.19 examples/v8/features/fibonacci.feature
cucumber-1.3.18 examples/v8/features/fibonacci.feature
cucumber-1.3.17 examples/v8/features/fibonacci.feature
cucumber-1.3.16 examples/v8/features/fibonacci.feature
cucumber-1.3.15 examples/v8/features/fibonacci.feature
cucumber-1.3.14 examples/v8/features/fibonacci.feature
cucumber-1.3.13 examples/v8/features/fibonacci.feature
cucumber-1.3.12 examples/v8/features/fibonacci.feature
cucumber-1.3.11 examples/v8/features/fibonacci.feature
cucumber-1.3.10 examples/v8/features/fibonacci.feature
cucumber-1.3.9 examples/v8/features/fibonacci.feature
candlepin-api-0.4.0 bundle/ruby/gems/cucumber-1.2.1/examples/v8/features/fibonacci.feature
candlepin-api-0.4.0 bundle/ruby/1.9.1/gems/cucumber-1.2.1/examples/v8/features/fibonacci.feature
candlepin-api-0.4.0 bundle/ruby/1.8/gems/cucumber-1.2.1/examples/v8/features/fibonacci.feature
cucumber-1.3.8 examples/v8/features/fibonacci.feature
cucumber-1.3.7 examples/v8/features/fibonacci.feature
cucumber-1.3.6 examples/v8/features/fibonacci.feature
cucumber-1.3.5 examples/v8/features/fibonacci.feature
cucumber-1.3.4 examples/v8/features/fibonacci.feature