File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed
src/test/org/openscience/cdk/smiles Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,32 @@ public void testLargeRingSystem() throws Exception {
103103 }
104104 Assert .assertEquals (13 , doubleBondCount );
105105 }
106-
106+
107+ /**
108+ * @cdk.bug 3506770
109+ */
110+ @ Test
111+ public void testLargeBioclipseUseCase () throws Exception {
112+ String smiles = "COc1ccc2[C@@H]3[C@H](COc2c1)C(C)(C)OC4=C3C(=O)C(=O)C5=C4OC(C)(C)[C@@H]6COc7cc(OC)ccc7[C@H]56" ;
113+ SmilesParser smilesParser = new SmilesParser (DefaultChemObjectBuilder .getInstance ());
114+ IMolecule molecule = smilesParser .parseSmiles (smiles );
115+
116+ DeduceBondSystemTool dbst = new DeduceBondSystemTool (new AllRingsFinder ());
117+ molecule = dbst .fixAromaticBondOrders (molecule );
118+ Assert .assertNotNull (molecule );
119+
120+ molecule = (IMolecule ) AtomContainerManipulator .removeHydrogens (molecule );
121+ Assert .assertEquals (40 , molecule .getAtomCount ());
122+
123+ // we should have 14 double bonds
124+ int doubleBondCount = 0 ;
125+ for (int i = 0 ; i < molecule .getBondCount (); i ++) {
126+ IBond bond = molecule .getBond (i );
127+ if (bond .getOrder () == Order .DOUBLE ) doubleBondCount ++;
128+ }
129+ Assert .assertEquals (10 , doubleBondCount );
130+ }
131+
107132 @ Test (timeout =1000 )
108133 public void testPyrrole_CustomRingFinder () throws Exception {
109134 String smiles = "c2ccc3n([H])c1ccccc1c3(c2)" ;
You can’t perform that action at this time.
0 commit comments