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 more unit tests #140

Open
dave-doty opened this issue Oct 17, 2021 · 0 comments
Open

add more unit tests #140

dave-doty opened this issue Oct 17, 2021 · 0 comments
Labels
invalid This doesn't seem right

Comments

@dave-doty
Copy link
Member

dave-doty commented Oct 17, 2021

This is a bit vague. Unfortunately there is very little unit testing in the library now. One reason is that testing the search algorithm itself is difficult since there is so much randomness. However, parts of the library are perfectly deterministic and can be tested, for example the DNA sequence generation used by the NumPy constraints (largely from the submodule dsd.np).

Even some parts of this that are random can be unit tested. For example, the constructor for DNASeqList that generates a random subset of sequences exactly a given Hamming distance from a given sequence (through the parameters hamming_distance_from_sequence and num_random_seqs) can be tested to ensure that every sequence it creates is the correct Hamming distance from the given sequence.

@dave-doty dave-doty added the invalid This doesn't seem right label Oct 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

1 participant