Skip to content

rotational-cipher: Is this meant to test only encoding/encrypting of a message? #605

Open
@NobbZ

Description

@NobbZ

The current canonical data seems to test only in a single direction and not back.

Thats makes it hard to do property based testing on this.

Since everything that is not an letter is not changed at all AND we keep case of a letter as well, I should be able to postulate the property decrypt n . encrypt n == id. But I am unsure how the dataset handles decrypting, so I'm unsure right now how to implement the exercise in general.

I am aware of the fact though that decrypt n == encrypt (26 - n), which might be another property to test, but that I do not want to mix into the first one...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions