Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Lettuce Example Python BDD
Feature: Compute fibonacci
In order to play with Lettuce
As beginners
We'll implement fibonacci
Scenario: Fibonacci of 0
Given I have the number 0
When I compute its fibonacci
Then I see the number 1
Scenario: Fibonacci of 1
Given I have the number 1
When I compute its fibonacci
Then I see the number 1
Scenario: Fibonacci of 2
Given I have the number 2
When I compute its fibonacci
Then I see the number 2
Scenario: Fibonacci of 3
Given I have the number 3
When I compute its fibonacci
Then I see the number 3
Scenario: Fibonacci of 4
Given I have the number 4
When I compute its fibonacci
Then I see the number 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment