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

Wordy tests require non-meaningful error messages #3859

Closed
Garrukh opened this issue Feb 4, 2025 · 1 comment
Closed

Wordy tests require non-meaningful error messages #3859

Garrukh opened this issue Feb 4, 2025 · 1 comment

Comments

@Garrukh
Copy link

Garrukh commented Feb 4, 2025

Hey,
Just recently I got stuck on the Wordy exercise due to what seems like some quite arbitrary error requirements.

Largely the syntax of a correctly formed sentence seems to match the following regex:
^What is( (\d+ [+-*/]))* \d+?$

How come a value like "Who is the President of the United States?" is supposed to raise ValueError("unknown operation") when the syntax of the whole sentence mismatches a correctly formed question. It seems like a ValueError("syntax error") would be more fitting here.

Additionally we could argue the same for the "What is 52 cubed?". You could pose this question in a way that aligns with the syntax more using a statement like "What is 52 to power of 2". This way we could keep the syntax like and avoid having to use so many exceptions.

Copy link
Contributor

github-actions bot commented Feb 4, 2025

Hello. Thanks for opening an issue on Exercism 🙂

At Exercism we use our Community Forum, not GitHub issues, as the primary place for discussion. That allows maintainers and contributors from across Exercism's ecosystem to discuss your problems/ideas/suggestions without them having to subscribe to hundreds of repositories.

This issue will be automatically closed. Please use this link to copy your GitHub Issue into a new topic on the forum, where we look forward to chatting with you!

If you're interested in learning more about this auto-responder, please read this blog post.

@github-actions github-actions bot closed this as completed Feb 4, 2025
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