Skip to content

Instantly share code, notes, and snippets.

@tatiana
Created March 14, 2011 03:46
Show Gist options
  • Save tatiana/868723 to your computer and use it in GitHub Desktop.
Save tatiana/868723 to your computer and use it in GitHub Desktop.
lettuce usage - feature file for the factorial example (using table)
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