RiverGlide/CukeSalad

View on GitHub
Examples/Calculator/features/addition.feature

Summary

Maintainability
Test Coverage
Feature: Addition
  As Callie, a calculating individual
  I want to quickly find out the sum of some numbers
    So that I am not tired out by doing mental arithmetic all day 
    
Scenario Outline: Find the sum of two numbers
  Given I am a Calculating Individual
  When I add, the number '<first_number>' and the number '<second_number>'
  Then I should see the answer '<result>'

    
Examples:
|first_number|second_number|result|
|          0 |           0 |    0 |
|          0 |           1 |    1 |
|          1 |           0 |    1 |
|          1 |           1 |    2 |
|         10 |           9 |   19 |