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

Fix a few bugs in the database test work #200

Merged
merged 3 commits into from
Apr 2, 2014

Conversation

rwest
Copy link
Member

@rwest rwest commented Apr 2, 2014

Some of the changes in #196
broke the isomorphism unit tests, as discussed in that pull request thread.
This pull request hopefully fixes it, and adds a few more tests to the unit tests,
making them even harder to pass.
@nyee, please see if what I did matches what you intended.

Label checking is done as part of the isomorphism routines.
Enforcing the isSpecificTypeOf and Equivalent methods to 
check it just breaks the isomorphism routines, as demonstrated
by the two unit tests that started failing.

(Yay for unit tests!)
Equivalent check needs to ensure the matches work both ways.
isSpecificCaseOf only needs to check self is contained within other.
(and both need to not just check self against self)
…Of tests.

We check a variety of radicals, multiplicities, and charges.
This helped find a bug I almost introduced :-)
(and I think would have detected the ones I had just removed)
nyee added a commit that referenced this pull request Apr 2, 2014
Fix a few bugs in the database test work
@nyee nyee merged commit ef17fbd into ReactionMechanismGenerator:master Apr 2, 2014
@rwest rwest deleted the fixbugs branch April 2, 2014 22:04
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.

None yet

2 participants