Created
March 14, 2011 03:46
-
-
Save tatiana/868723 to your computer and use it in GitHub Desktop.
lettuce usage - feature file for the factorial example (using table)
This file contains hidden or 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
Feature: Compute factorial | |
In order to play with Lettuce | |
As beginners | |
We'll implement factorial | |
Scenario: Factorials [0-4] | |
Given I have the number <number> | |
When I compute its factorial | |
Then I see the number <result> | |
Examples: | |
| number | result | | |
| 0 | 1 | | |
| 1 | 1 | | |
| 2 | 2 | | |
| 3 | 6 | | |
| 4 | 24 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment