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

Add Exercise: Protein Translation #245

Merged

Conversation

D3usXMachina
Copy link
Contributor

Adds the protein translation exercise (discussed here).

Also adds the required assert_equal for arrays of strings to the testlib (discussed here).

Copy link

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

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


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions bot closed this Jan 30, 2024
@ErikSchierboom
Copy link
Member

LGTM. I'll let some from the @exercism/fortran maintainers team look at the Fortran-specific side of things.

@ErikSchierboom ErikSchierboom requested a review from a team January 31, 2024 08:10
@ErikSchierboom
Copy link
Member

@D3usXMachina If no one has reviewed in a couple of days, please ping me.

If it works for one codon, the program should work for all of them.
However, feel free to expand the list in the test suite to include them all.

There are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
There are also three terminating codons (also known as 'STOP' codons); if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.
There are also three terminating codons (also known as 'STOP' codons);
if any of these codons are encountered (by the ribosome), all translation ends and the protein is terminated.

One line per sentence, though this can be one line per phrase, since this is a reasonable break, and only one portion of these might be changed or updated in the future, leaving a clean diff at that point.

Definitely an optional change.

Copy link
Member

@ErikSchierboom ErikSchierboom Feb 2, 2024

Choose a reason for hiding this comment

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

@kotp You do know that these instructions.md file's contents are synced from problem-specifications, right? So any suggestions to change them would have to be done there.

@@ -221,6 +222,38 @@ subroutine assert_equal_str(estr,istr,test_description)
endif
end subroutine

!------------------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure changes to the TesterMain.f90 within an exercise's directory will work in the test runner. @pclausen ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file isn't in the exercise's directory.

Sorry for bundling the two things together.
I originally opened a separate pull request for the change to the testlib #242, but since that commit is in this pull request as well, I thought it might be unnecessary to recreate the other PR.

Copy link
Member

Choose a reason for hiding this comment

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

No it's needed due to the fact that the TesterMain.f90 is downloaded into the test runner I believe. @pclausen ?

@ErikSchierboom
Copy link
Member

The test runner has been updated!

@ErikSchierboom ErikSchierboom merged commit 9491982 into exercism:main Feb 15, 2024
5 checks passed
@D3usXMachina D3usXMachina deleted the exercise-protein-translation branch February 15, 2024 19:29
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