Skip to content

Étude 5-1 validation #44

@MatthewMDavis

Description

@MatthewMDavis

The requirements for Étude 5-1 state:

Your module will ask for the first letter of the shape (in either upper or lower case), then the appropriate dimensions. It should catch invalid letters, non-numeric input, and negative numbers as input. Here is some sample output.

But the code does not appear to catch non-numeric input. :erlang.binary_to_integer throws an error if I enter "five" instead of "5". Indeed, the whole point of Étude 5.2 (regular expressions) seems to be catching non-numeric input.

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