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

rna-transcription: remove bad input tests #1027

Merged
merged 2 commits into from
Dec 5, 2017
Merged

Conversation

rpottsoh
Copy link
Member

@rpottsoh rpottsoh commented Dec 5, 2017

closes #977

Replacing expected value of null with an error object.

propose error object:

{"error": "invalid input"}

Let me know if the message should be re-worded.

@Insti
Copy link
Contributor

Insti commented Dec 5, 2017

What about removing these tests completely. #902

Maybe that can be tomorrows PR....

@rpottsoh
Copy link
Member Author

rpottsoh commented Dec 5, 2017

The thought had crossed my mind too..... Should we flip a coin?

@Insti
Copy link
Contributor

Insti commented Dec 5, 2017

Heads we remove them, Tails we delete them?

@rpottsoh
Copy link
Member Author

rpottsoh commented Dec 5, 2017

Grabbing a coin... Call it in the air.

@rpottsoh
Copy link
Member Author

rpottsoh commented Dec 5, 2017

Tails...... I guess they go. 👍

@rpottsoh rpottsoh changed the title rna-transcription: Add error object rna-transcription: remove bad input tests Dec 5, 2017
@rpottsoh rpottsoh merged commit cb35c09 into master Dec 5, 2017
@rpottsoh rpottsoh deleted the updateRnaTranscription branch December 5, 2017 21:50
@Insti
Copy link
Contributor

Insti commented Dec 5, 2017

I agree with this, but maybe it's a good idea to leave PRs like this open for a little longer to give others a chance to weigh in..

@petertseng
Copy link
Member

thou hast forgotten to change the version number

you probably should

@stevejb71
Copy link
Contributor

The comment in the json file is now out of date.

@rpottsoh
Copy link
Member Author

rpottsoh commented Dec 5, 2017

Doh! thanks @petertseng
I will open a new PR to take of the version and the comment....

@rpottsoh rpottsoh restored the updateRnaTranscription branch December 5, 2017 22:50
@rpottsoh rpottsoh deleted the updateRnaTranscription branch December 5, 2017 22:52
petertseng added a commit to petertseng/exercism-ceylon that referenced this pull request Jan 11, 2018
…ns 1.1.0

remove tests of invalid input

exercism/problem-specifications#1027
exercism/problem-specifications#1028

Note for the future: This commit makes the decision to keep the invalid input.
This decision is made arbitrarily, so there should be no hesitation
about reversing in the future if that is appropriate. It's merely a
desire to showcase Error. Even though that was already done in Hamming
and will be done in largest-series-product.
petertseng pushed a commit to exercism/haskell that referenced this pull request Jan 31, 2018
This reverts commit 07c7426.
This reverts #634.

In exercism/problem-specifications#1027 three
error cases were removed by the result of a coin flip. Since that is
insufficient reason to remove them from the Haskell track, the Haskell
track chooses to keep them, and needs no further justification to do so.
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.

rna-transcription: specify error cases using error-object
4 participants