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

Sync and re-implement rna-transcription #169

Merged
merged 2 commits into from
Jul 28, 2024

Conversation

keiravillekode
Copy link
Contributor

No description provided.

property = case["property"]
expected = to_vect(case["expected"])
if expected == "[]":
expected = "(the (Vect 0 RnaStrand) [])"
Copy link
Contributor Author

@keiravillekode keiravillekode Jul 26, 2024

Choose a reason for hiding this comment

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

Without this, a student can change

toRna : Vect n DnaStrand -> Vect n RnaStrand

to

toRna : List DnaStrand -> List RnaStrand

and provide a solution using lists.

It isn't a major problem - when a student cheats, they are only cheating themselves - but we eliminate this kind of cheating by expecting a Vect

There are still other ways of cheating like defining Eq RnaStrand to always return True

@keiravillekode keiravillekode merged commit 5ccf97b into exercism:main Jul 28, 2024
1 check passed
@keiravillekode keiravillekode deleted the sync-rna-transcription branch July 28, 2024 12:35
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