-
Notifications
You must be signed in to change notification settings - Fork 531
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
Tests for protein-translation don't match its README #267
Comments
The questions arising from this:
|
It appears to me that exercism/problem-specifications#268 is correct at a high level:
but "exact" isn't quite right since the two exercises do so quite differently:
I would cast a vote for changing the protein-translation Rust track tests to match the README (and what the protein-translation tracks in other languages check for). I have no opinion about reintroducing nucleotide-codons. |
Thanks for the initial report and the subsequent evaluation! I also wish to express no opinion on nucleotide-codons, but I will leave on a note for whoever decides to work on exercism/problem-specifications#577 that they may consider whether to include the old tests of nucleotide-codons. At this point we may consider the discussion of nucleotide-codons deferred to that issue. For the Rust track, I would also agree that the protein-translation tests should change to match the readme. |
* Added test cases for function `of_rna`, which translates a strand of RNA into a sequence of proteins per README. The test cases are copied from the test cases in [xpython](https://github.com/exercism/xpython/blob/master/exercises/protein-translation/protein_translation_test.py). * Added example for `of_rna`.
The README for this exercise describe the problem as (roughly) "given a sequence of codons, output the sequence of proteins". However, the tests in
protein-translation
(a) only seem to expect a single protein name from a single codon and (b) talk about codon "compression" which is not mentioned in the README; e.g.,I glanced at a couple other languages' versions of this exercise and saw tests that look much more like the README and don't talk about compressed names (go, elixir).
The text was updated successfully, but these errors were encountered: