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

wneumann: add and improve tests for swift/nucleotide-count #390

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wneumann
Copy link
Contributor

Added two tests that look for corner cases that I have had students trip up on. Single nucleotide strands, and strands that contain both valid and invalid nucleotides (current validation test was only with all invalid characters).

I also modified the tests to remove force unwrapping and to use XCTAsserNonNil) instead (tried to use XCTUnwrap, but found out the infrastructure doesn't yet support XCTUnwrap). As mentors, we would encourage our students to not use force unwrapping in their code, and we shouldn't use it in ours.

… strands, and strands that contain valid and

 invalid nucleotides (current validation test was only with all invalid characters).

More importantly, I modified the tests to remove force unwrapping and to use XCTUnwrap instead. We would encourage our students to not use force unwrapping in their code, and we shouldn't use it in ours.
Base automatically changed from master to main January 28, 2021 19:16
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.

1 participant