-
Notifications
You must be signed in to change notification settings - Fork 0
/
calculator.feature
40 lines (32 loc) · 1.42 KB
/
calculator.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Feature: Calculator
As a canvas noob, I am testing a canvas calculator feature for the first time,
noticing more white strands emerging on my head over the course of two days.
Scenario: Subtracting smaller number from bigger number should return positive value
Given I launch online calculator site
When I subtract "10" from "15"
Then Calculator should return "5"
Scenario: Subtracting bigger number from smaller number should return negative value
Given I launch online calculator site
When I subtract "10" from "5"
Then Calculator should return "-5"
Scenario: Subtracting the same number should return 0
Given I launch online calculator site
When I subtract "5" from "5"
Then Calculator should return "0"
Scenario: Dividing a smaller number by a bigger number should return 0. decimal value
Given I launch online calculator site
When I divide "1" by "5"
Then Calculator should return "0.2"
Scenario: Dividing a bigger number by a smaller number should return a positive value
Given I launch online calculator site
When I divide "5" by "1"
Then Calculator should return "5"
Scenario: Dividing the same number should return one
Given I launch online calculator site
When I divide "5" by "5"
Then Calculator should return "1"
Scenario: Clearing the calculator should reset it
Given I launch online calculator site
And I click on number "5"
When I click on button "CE"
Then Calculator should be cleared