Feature: Addition

As a math idiot
I want to be told the sum of two numbers
So that I don't make silly mistakes

Scenario: 50+70
  • Given I have entered 50 into the calculator
  • Given foo bar
  • And I have entered 70 into the calculator
  • When I add
  • Then the result should be 12 on the screen
  • And the result class should be Float
Feature: Division

As a math genius
I want to be told the division of two floats
So that I don't make silly mistakes

Scenario: 7/2
  • Given I have entered 3 into the calculator
  • And I have entered 2 into the calculator
  • When I divide
  • Then the result should be 2.5 on the screen
  • And the result class should be Float
Scenario: 3/0
  • Given I have entered 3 into the calculator
  • And I have entered 2 into the calculator
  • When I divide
  • Then the result should be NaN on the screen