# Test Report

## Document meta information

Key | Value
Hostname | affenschaukel
Time | Fri Feb 5 10:33:18 2016
Command | /usr/local/bin/pherkin -o Html features/

## Summary

Status | Count
Passed | 22
Failed | 0
Pending | 0
Skipped | 0

## Table of Content

- Simple tests of Digest.pm

- Check MD5
- Check SHA-1
- Check SHA-1
- Check SHA-1
- MD5 longer data

## Simple tests of Digest.pm (features/basic.feature)

    As a developer planning to use Digest.pm
    I want to test the basic functionality of Digest.pm
    In order to have confidence in it

### Check MD5

Given a usable "Digest" class
(background, line: 8)
passed

#### Test Output:

    ok 1 - Starting to execute step: a usable "Digest" class
    ok 2 - use Digest;
    1..2

Given a Digest MD5 object
(line: 11)
passed

#### Test Output:

    ok 1 - Starting to execute step: a Digest MD5 object
    ok 2 - Object created
    1..2

When I've added "foo bar baz" to the object
(line: 12)
passed

#### Test Output:

    ok 1 - Starting to execute step: I've added "foo bar baz" to the object
    1..1

And I've added "bat ban shan" to the object
(line: 13)
passed

#### Test Output:

    ok 1 - Starting to execute step: I've added "bat ban shan" to the object
    1..1

Then the hex output is "bcb56b3dd4674d5d7459c95e4c8a41d5"
(line: 14)
passed

#### Test Output:

    ok 1 - Starting to execute step: the hex output is "bcb56b3dd4674d5d7459c95e4c8a41d5"
    ok 2
    1..2

Then the base64 output is "1B2M2Y8AsgTpgAmY7PhCfg"
(line: 15)
passed

#### Test Output:

    ok 1 - Starting to execute step: the base64 output is "1B2M2Y8AsgTpgAmY7PhCfg"
    ok 2
    1..2

### Check SHA-1

Given a usable "Digest" class
(background, line: 8)
passed

#### Test Output:

    ok 1 - Starting to execute step: a usable "Digest" class
    ok 2 - use Digest;
    1..2

Given a Digest SHA-1 object
(line: 18)
passed

#### Test Output:

    ok 1 - Starting to execute step: a Digest SHA-1 object
    ok 2 - Object created
    1..2

When I've added "foo" to the object
(line: 19)
passed

#### Test Output:

    ok 1 - Starting to execute step: I've added "foo" to the object
    1..1

Then the hex output is "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33"
(line: 20)
passed

#### Test Output:

    ok 1 - Starting to execute step: the hex output is "0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33"
    ok 2
    1..2

### Check SHA-1

Given a usable "Digest" class
(background, line: 8)
passed

#### Test Output:

    ok 1 - Starting to execute step: a usable "Digest" class
    ok 2 - use Digest;
    1..2

Given a Digest SHA-1 object
(line: 18)
passed

#### Test Output:

    ok 1 - Starting to execute step: a Digest SHA-1 object
    ok 2 - Object created
    1..2

When I've added "bar" to the object
(line: 19)
passed

#### Test Output:

    ok 1 - Starting to execute step: I've added "bar" to the object
    1..1

Then the hex output is "62cdb7020ff920e5aa642c3d4066950dd1f01f4d"
(line: 20)
passed

#### Test Output:

    ok 1 - Starting to execute step: the hex output is "62cdb7020ff920e5aa642c3d4066950dd1f01f4d"
    ok 2
    1..2

### Check SHA-1

Given a usable "Digest" class
(background, line: 8)
passed

#### Test Output:

    ok 1 - Starting to execute step: a usable "Digest" class
    ok 2 - use Digest;
    1..2

Given a Digest SHA-1 object
(line: 18)
passed

#### Test Output:

    ok 1 - Starting to execute step: a Digest SHA-1 object
    ok 2 - Object created
    1..2

When I've added "baz" to the object
(line: 19)
passed

#### Test Output:

    ok 1 - Starting to execute step: I've added "baz" to the object
    1..1

Then the hex output is "bbe960a25ea311d21d40669e93df2003ba9b90a2"
(line: 20)
passed

#### Test Output:

    ok 1 - Starting to execute step: the hex output is "bbe960a25ea311d21d40669e93df2003ba9b90a2"
    ok 2
    1..2

### MD5 longer data

Given a usable "Digest" class
(background, line: 8)
passed

#### Test Output:

    ok 1 - Starting to execute step: a usable "Digest" class
    ok 2 - use Digest;
    1..2

Given a Digest MD5 object
(line: 28)
passed

#### Test Output:

    ok 1 - Starting to execute step: a Digest MD5 object
    ok 2 - Object created
    1..2

When I've added the following to the object
(line: 29)
passed

#### Test Output:

    ok 1 - Starting to execute step: I've added the following to the object
    1..1

#### Example Data:

    Here is a chunk of text that works a bit like a HereDoc. We'll split
    off indenting space from the lines in it up to the indentation of the
    first """

Then the hex output is "75ad9f578e43b863590fae52d5d19ce6"
(line: 35)
passed

#### Test Output:

    ok 1 - Starting to execute step: the hex output is "75ad9f578e43b863590fae52d5d19ce6"
    ok 2
    1..2