Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added unit test to make sure atom types are also perceived when aroma…
…ticity from SMILES is kept
  • Loading branch information
egonw committed Nov 1, 2011
1 parent 22c59fc commit d6b8c8e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/test/org/openscience/cdk/smiles/SmilesParserTest.java
Expand Up @@ -2292,6 +2292,13 @@ public void testAromaticity() throws InvalidSmilesException{

}

@Test public void testPreserveAromaticityAndPerceiveAtomTypes() throws InvalidSmilesException{
SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
sp.setPreservingAromaticity(true);
IMolecule molecule = sp.parseSmiles("c1ccccc1");
Assert.assertNotNull(molecule.getAtom(0).getAtomTypeName());
}

/**
* @cdk.bug 3160514
*/
Expand Down

0 comments on commit d6b8c8e

Please sign in to comment.