24 lines
622 B
Gherkin
24 lines
622 B
Gherkin
Feature: Calculator
|
|
As a user
|
|
I want to use a calculator to add numbers
|
|
So that I don't need to add myself
|
|
|
|
Scenario: Add two numbers -2 & 3
|
|
Given I have a calculator
|
|
When I add -2 and 3
|
|
Then the result should be 1
|
|
|
|
Scenario: Add two numbers 10 & 15
|
|
Given I have a calculator
|
|
When I add 10 and 15
|
|
Then the result should be 25
|
|
|
|
Scenario: Add two numbers 99 & -99
|
|
Given I have a calculator
|
|
When I add 99 and -99
|
|
Then the result should be 0
|
|
|
|
Scenario: Add two numbers -1 & -10
|
|
Given I have a calculator
|
|
When I add -1 and -10
|
|
Then the result should be -11 |