Sha256: 8b22544d036244fbf8c62aa23510a931f4e9366f394e1c92bc467352d3470c31
Contents?: true
Size: 1003 Bytes
Versions: 28
Compression:
Stored size: 1003 Bytes
Contents
Feature: Addition In order to avoid silly mistakes As a math idiot I want to be told the sum of two numbers Scenario: Add two numbers Given I have entered 50 into the calculator And I have entered 70 into the calculator When I press add Then the result should be 120 on the screen And the result class should be Fixnum More Examples: | input_1 | input_2 | button | output | class | | 20 | 30 | add | 50 | Fixnum | | 2 | 5 | add | 7 | Fixnum | | 0 | 40 | add | 40 | Fixnum | Scenario: Add three numbers Given I have entered 25 into the calculator And I have entered 12 into the calculator And I have entered 13 into the calculator When I press add Then the result should be 50 on the screen And the result class should be Fixnum More Examples: | input_1 | input_2 | input_3 | button | output | class | | 1 | 2 | 3 | add | 6 | Fixnum |
Version data entries
28 entries across 28 versions & 5 rubygems