-
Notifications
You must be signed in to change notification settings - Fork 845
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
Improve test coverage and some bug fixes #4536
Conversation
tests StereoInfo::operator==
(don't bother running some of the tests there)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two small questions, yeoman's work here greg, nice!
@@ -418,7 +413,13 @@ void test4() { | |||
TEST_ASSERT(adjMat[1] == 1); | |||
TEST_ASSERT(adjMat[2] == 1); | |||
TEST_ASSERT(adjMat[3] == 0); | |||
delete m; | |||
bool useBO = true; | |||
adjMat = MolOps::getAdjacencyMatrix(*m, useBO); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might want to check the prop names are being set properly here between useBO and atom Weights.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAdjacencyMatrix()
doesn't have an option with atom weights.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong function, I apparently meant: getDistanceMat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe that test does that already
This mainly adds tests to improve test coverage.
This is, of course, a story which could go on for a long time. Some improvement is better than none. :-)
Bug fixes made along the way:
parseAdjustQueryParametersFromJSON()
adjustQueryProperties()
Bond::getValenceContrib()
would return non-zero results for atoms not involved in the bondStereoType
missingoperator!=
DeprotectData
missingoperator!=
getDistanceMat()
andget3DDistanceMat()
This also deprecates the definition of
BalabanJ
which is inMolDiscriminators.cpp
. If we want to keep this we should move it to the Descriptors directory.