Skip to content

Commit

Permalink
Unit test to make sure parsing a SMILES does not set a null cdk:Title…
Browse files Browse the repository at this point in the history
… (as 1.5.13 does, as found in Bioclipse)
  • Loading branch information
egonw committed Sep 13, 2016
1 parent 35d5741 commit 9133fa6
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2575,4 +2575,10 @@ static IAtomContainer loadExact(String smi) throws InvalidSmilesException {
return parser.parseSmiles(smi);
}

public void testNoTitle() throws InvalidSmilesException {
SmilesParser parser = new SmilesParser(SilentChemObjectBuilder.getInstance());
IAtomContainer mol = parser.parseSmiles("CCC");
Assert.assertNull(mol.getProperty("cdk:Title"));
}

}

0 comments on commit 9133fa6

Please sign in to comment.