Document meta information

Key Value
Hostnameaffenschaukel
TimeFri Feb 5 10:30:55 2016
Command/usr/local/bin/pherkin -o Html features/

Summary

Status Count
Passed72
Failed1
Pending2
Skipped0

Table of Content

Basic Calculator Functions (features/basic.feature)

In order to check I've written the Calculator class correctly
As a developer I want to check some basic operations
So that I can have confidence in my Calculator class.

First Key Press on the Display

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having pressed 1
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 1
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Several Key Presses on the Display

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having pressed 1 and 2 and 3 and . and 5 and 0
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 123.50
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Pressing Clear Wipes the Display

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having pressed 1 and 2 and 3
1..1

Test Output:

ok 1 - Starting to execute step: having pressed C
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 0
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Add as you go

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having pressed 1 and 2 and 3 and + and 4 and 5 and 6 and +
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 579
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Basic arithmetic

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 5.0
1..1

Test Output:

ok 1 - Starting to execute step: having keyed +
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 5.0
1..1

Test Output:

ok 1 - Starting to execute step: having pressed =
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 10
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Basic arithmetic

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 6
1..1

Test Output:

ok 1 - Starting to execute step: having keyed /
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 3
1..1

Test Output:

ok 1 - Starting to execute step: having pressed =
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 2
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Basic arithmetic

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 10
1..1

Test Output:

ok 1 - Starting to execute step: having keyed *
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 7.550
1..1

Test Output:

ok 1 - Starting to execute step: having pressed =
1..1

Test Output:

ok 1 - Starting to execute step: the display should show 75.5
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Basic arithmetic

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 3
1..1

Test Output:

ok 1 - Starting to execute step: having keyed -
1..1

Test Output:

ok 1 - Starting to execute step: having keyed 10
1..1

Test Output:

ok 1 - Starting to execute step: having pressed =
1..1

Test Output:

ok 1 - Starting to execute step: the display should show -7
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Separation of calculations

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having successfully performed the following calculations
not ok 2 - Test compiled
#   Failed test 'Test compiled'
#   at /usr/share/perl5/Test/BDD/Cucumber/Executor.pm line 338.
# Can't locate object method "dispatch" via package "Test::BDD::Cucumber::StepContext" at features/step_definitions/calculator_steps.pl line 69.
1..2

Test Output:

1..0 # SKIP Short-circuited from previous tests

Test Output:

1..0 # SKIP Short-circuited from previous tests

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Ticker Tape

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having entered the following sequence
1..1

Example Data:

1 + 2 + 3 + 4 + 5 + 6 -
100
* 13 === + 2 =

Test Output:

ok 1 - Starting to execute step: the display should show -1025
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Enter number using text

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having keyed __THE_NUMBER_FIVE__
ok 2 - Passed in a word to map [__THE_NUMBER_FIVE__]
ok 3 - Mapping found
1..3

Test Output:

ok 1 - Starting to execute step: the display should show 5
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2

Enter numbers using text

Test Output:

ok 1 - Starting to execute step: 
ok 2 - use Calculator;
1..2

Test Output:

ok 1 - Starting to execute step: a new Calculator object
1..1

Test Output:

ok 1 - Starting to execute step: having added these numbers
ok 2 - Passed in a word to map [__THE_NUMBER_FOUR__]
ok 3 - Mapping found
ok 4 - Passed in a word to map [__THE_NUMBER_FIVE__]
ok 5 - Mapping found
ok 6 - Passed in a word to map [__THE_NUMBER_ONE__]
ok 7 - Mapping found
1..7

Test Output:

ok 1 - Starting to execute step: the display should show 10
ok 2 - Calculator display as expected
1..2

Test Output:

ok 1 - Starting to execute step: the display should show __THE_NUMBER_TEN__
ok 2 - Passed in a word to map [__THE_NUMBER_TEN__]
ok 3 - Mapping found
ok 4 - Calculator display as expected
1..4

Test Output:

ok 1 - Starting to execute step: 
ok 2 - Calculator cleaned up
1..2