Skip to content

Commit

Permalink
Added a unit test for bug #3242
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Jul 10, 2012
1 parent 7020092 commit b2536bc
Showing 1 changed file with 12 additions and 0 deletions.
Expand Up @@ -2065,6 +2065,18 @@ public void testGetFormats() {
Assert.assertTrue(fileContent.contains("V2000"));
}

@Test public void testGetMDLMolfileStringFromNotAtomTyped() throws Exception {
ICDKMolecule mol = cdk.fromSMILES("O=C(CC)[O-].[Na+]");
for (IAtom atom : mol.getAtomContainer().atoms()) {
atom.setAtomTypeName(null);
}

String fileContent = cdk.getMDLMolfileString(mol);

Assert.assertNotNull(fileContent);
Assert.assertTrue(fileContent.contains("V2000"));
}

@Test public void testCalculateTanimoto_BitSet_BitSet() throws Exception {
BitSet b1 = new BitSet(5); b1.set(5); b1.set(4);
BitSet b3 = new BitSet(5); b3.set(3); b3.set(4);
Expand Down

0 comments on commit b2536bc

Please sign in to comment.