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

Regression tests for nuclinfo.minor_pair #977

Merged
merged 2 commits into from
Sep 11, 2016

Conversation

tylerjereddy
Copy link
Member

This PR simply adds two regression tests for MDAnalysis.analysis.nuclinfo.minor_pair

It is a subset of the additions required for Issue #790. I realize that optimally I might do all of the regression tests and close the issue, but just wanted something relatively simple I could "get done" with a few spare minutes.

@coveralls
Copy link

coveralls commented Sep 10, 2016

Coverage Status

Coverage increased (+0.02%) to 84.361% when pulling 20739fb on issue_790_nuclinfo_tests into e8ad9b2 on develop.


def test_minor_pair_1(self):
val = nuclinfo.minor_pair(self.u, 3, 17, seg1='RNAA', seg2='RNAA')
assert_almost_equal(val, 16.649, decimal=3)
Copy link
Member

Choose a reason for hiding this comment

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

where do these values come from? Might be useful when the test fails after a refactor.

Copy link
Member

Choose a reason for hiding this comment

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

If it's regression then probably just from running the tests in filling in the values that are needed to make the tests pass.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that is what I did.

@orbeckst
Copy link
Member

I realize that optimally I might do all of the regression tests and close the issue

Anyone who sacrifices a few spare minutes for writing tests is a hero!

@richardjgowers richardjgowers merged commit 080f861 into develop Sep 11, 2016
@richardjgowers
Copy link
Member

Looking good! Can definitely chip away at coverage like this

@tylerjereddy tylerjereddy deleted the issue_790_nuclinfo_tests branch September 11, 2016 10:42
abiedermann pushed a commit to abiedermann/mdanalysis that referenced this pull request Jan 5, 2017
* Added two regression tests for MDAnalysis.analysis.nuclinfo.minor_pair

* Added CHANGELOG entry for new MDAnalysis.analysis.nuclinfo.minor_pair regression tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants