Skip to content

protein-translation: Add tests for invalid sequences#1107

Open
mhorod wants to merge 1 commit intoexercism:mainfrom
mhorod:main
Open

protein-translation: Add tests for invalid sequences#1107
mhorod wants to merge 1 commit intoexercism:mainfrom
mhorod:main

Conversation

@mhorod
Copy link

@mhorod mhorod commented Sep 6, 2022

The result type of the proteins function is Maybe [String] but all tests expect Just.
I added some tests that expect Nothing on an invalid input.

Copy link
Member

@petertseng petertseng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, there wasn't discussion in #630 of why these weren't added, but that must just be because they didn't exist in https://github.com/exercism/problem-specifications/blob/main/exercises/protein-translation/canonical-data.json then. but now that some tests do, we should better use those instead of making up our own

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.

2 participants