Skip to content

rna-transcription: add invalid strand tests #1854

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

Closed
wants to merge 1 commit into from

Conversation

beatorizu
Copy link
Contributor

I wrote those test cases because the exercise description tells you that the code need to be able to handle invalid inputs by raising a ValueError.

@beatorizu beatorizu requested a review from a team as a code owner July 20, 2019 23:43
@cmccandless
Copy link
Contributor

Once upon a time, there were test cases for invalid input. These were removed in exercism/problem-specifications#1027.

Rather than restoring cases that were intentionally removed, I would prefer to revise incorrect documentation. I looked at the exercise README, but saw no mention of handling invalid input. Which description were you referring to?

@beatorizu
Copy link
Contributor Author

I read ValueError in exercism site.

@cmccandless
Copy link
Contributor

I do not see what you're seeing on the Exercism.io exercise page either. Can you provide a screenshot of what you're seeing?

Also, please check if your exercise is "out-of-date"; if it is, you will see the following below your submission:
image

@yawpitch
Copy link
Contributor

@cmccandless it looks like the reference to ValueError was removed some time ago, however the example.py still includes a section that raises ValueError... should we remove that?

@cmccandless
Copy link
Contributor

should we remove that?

Wouldn't hurt to remove it, since modifying the example solution shouldn't prompt students to update their exercise.

AFAIK, the reason example solutions exist so that tests can be verified in CI. Students are not prohibited from reading example solutions, of course, but it is hardly required reading.

@yawpitch
Copy link
Contributor

AFAIK, the reason example solutions exist so that tests can be verified in CI. Students are not prohibited from reading example solutions, of course, but it is hardly required reading.

Fair enough, but it might be good to keep them somewhat in sync with the "Recommended Solution" in the Mentor Notes and the tests.

@beatorizu
Copy link
Contributor Author

I do not see what you're seeing on the Exercism.io exercise page either. Can you provide a screenshot of what you're seeing?

Also, please check if your exercise is "out-of-date"; if it is, you will see the following below your submission:
image

Yep, I got this message. When I updated the exercise the ValueError is no longer mentioned.

@yawpitch
Copy link
Contributor

yawpitch commented Aug 1, 2019

I do not see what you're seeing on the Exercism.io exercise page either. Can you provide a screenshot of what you're seeing?
Also, please check if your exercise is "out-of-date"; if it is, you will see the following below your submission:
image

Yep, I got this message. When I updated the exercise the ValueError is no longer mentioned.

Good. As the requirement has been removed from the copy and from the exercise I'm going to close this PR. I'll open another PR to remove the ValueError from the example.py.

@yawpitch yawpitch closed this Aug 1, 2019
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

Successfully merging this pull request may close these issues.

3 participants