Skip to content

Commit

Permalink
made scenario description more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyhaines committed Sep 21, 2009
1 parent ddff87a commit 5e2c6d2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions features/dead_cell.feature
Expand Up @@ -3,71 +3,71 @@ Feature: Evolving a dead cell
As a programmer of Conway's Game of Life As a programmer of Conway's Game of Life
I can evolve a single dead cell based I can evolve a single dead cell based


Scenario: Dead cell with 0 neighbors Scenario: Dead cell with 0 neighbors stays dead
Given the following setup Given the following setup
| . | . | . | | . | . | . |
| . | . | . | | . | . | . |
| . | . | . | | . | . | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 1 neighbor Scenario: Dead cell with 1 neighbor stays dead
Given the following setup Given the following setup
| . | x | . | | . | x | . |
| . | . | . | | . | . | . |
| . | . | . | | . | . | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 2 neighbors Scenario: Dead cell with 2 neighbors stays dead
Given the following setup Given the following setup
| . | x | . | | . | x | . |
| . | . | x | | . | . | x |
| . | . | . | | . | . | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 3 neighbors Scenario: Dead cell with 3 neighbors comes to life
Given the following setup Given the following setup
| x | x | x | | x | x | x |
| . | . | . | | . | . | . |
| . | . | . | | . | . | . |
When I evolve the board When I evolve the board
Then the center cell should be alive Then the center cell should be alive


Scenario: Dead cell with 4 neighbors Scenario: Dead cell with 4 neighbors stays dead
Given the following setup Given the following setup
| x | x | x | | x | x | x |
| . | . | x | | . | . | x |
| . | . | . | | . | . | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 5 neighbors Scenario: Dead cell with 5 neighbors stays dead
Given the following setup Given the following setup
| x | x | x | | x | x | x |
| x | . | x | | x | . | x |
| . | . | . | | . | . | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 6 neighbors Scenario: Dead cell with 6 neighbors stays dead
Given the following setup Given the following setup
| x | x | x | | x | x | x |
| x | . | x | | x | . | x |
| x | . | . | | x | . | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 7 neighbors Scenario: Dead cell with 7 neighbors stays dead
Given the following setup Given the following setup
| x | x | x | | x | x | x |
| x | . | x | | x | . | x |
| x | x | . | | x | x | . |
When I evolve the board When I evolve the board
Then the center cell should be dead Then the center cell should be dead


Scenario: Dead cell with 8 neighbors Scenario: Dead cell with 8 neighbors stays dead
Given the following setup Given the following setup
| x | x | x | | x | x | x |
| x | x | x | | x | x | x |
Expand Down

0 comments on commit 5e2c6d2

Please sign in to comment.