mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
work on getting the stuff in java
This commit is contained in:
@@ -189,6 +189,19 @@ public class BasicMoleculeTests extends GraphMolTest {
|
||||
public void testErrorHandling_BadKekulize() {
|
||||
RWMol.MolFromSmiles("c1cc1");
|
||||
}
|
||||
@Test(expected=MolSanitizeException.class)
|
||||
public void testErrorHandling_BadKekulize2() {
|
||||
RWMol mol=RWMol.MolFromSmiles("c1cc1",0,false);
|
||||
RDKFuncs.sanitizeMol(mol);
|
||||
}
|
||||
@Test public void testErrorHandling_BadKekulize3() {
|
||||
RWMol mol=RWMol.MolFromSmiles("c1cc1",0,false);
|
||||
int ops=SanitizeFlags.SANITIZE_ALL.swigValue();
|
||||
int failedAt=RDKFuncs.sanitizeMol(mol,ops);
|
||||
|
||||
assertEquals(failedAt,SanitizeFlags.SANITIZE_KEKULIZE.swigValue());
|
||||
}
|
||||
|
||||
/* @Test -- the contents of this test now in UnitTestPickling, testIssue219
|
||||
public void testConformer(){
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user