Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Étude 5-1 validation #44

Open
MatthewMDavis opened this issue Jun 18, 2016 · 0 comments
Open

Étude 5-1 validation #44

MatthewMDavis opened this issue Jun 18, 2016 · 0 comments

Comments

@MatthewMDavis
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant