Permalink
Browse files

Added additional test that non matching symbols mismatch

Change-Id: Ia48137c987e4158db6bf801590115aa939c6ade2
Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information...
johnmay authored and egonw committed Oct 10, 2012
1 parent 3117f4c commit c53219187345d677d5a872e7b4671b4d885ad462
Showing with 15 additions and 0 deletions.
  1. +15 −0 src/test/org/openscience/cdk/isomorphism/UniversalIsomorphismTesterTest.java
@@ -490,6 +490,21 @@
}
}
@Test
public void testSingleAtomMismatching() throws Exception {
SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
IAtomContainer target = sp.parseSmiles("C");
IAtomContainer query = sp.parseSmiles("N");
Assert.assertFalse("Single carbon and nitrogen should not match",
UniversalIsomorphismTester.isIsomorph(target, query));
Assert.assertFalse("Single nitrogen and carbon should not match",
UniversalIsomorphismTester.isIsomorph(query, target));
}
/**
* @cdk.bug 2888845
* @throws Exception

0 comments on commit c532191

Please sign in to comment.