Skip to content

Commit c793b01

Browse files
committed
Hydrogens need to be added because we build the molecule from scratch.
1 parent 4376ab0 commit c793b01

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

descriptor/qsarmolecular/src/test/java/org/openscience/cdk/qsar/descriptors/molecular/ALOGPDescriptorTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.openscience.cdk.interfaces.IAtomContainer;
2828
import org.openscience.cdk.qsar.DescriptorValue;
2929
import org.openscience.cdk.qsar.result.DoubleArrayResult;
30+
import org.openscience.cdk.silent.SilentChemObjectBuilder;
3031
import org.openscience.cdk.tools.CDKHydrogenAdder;
3132
import org.openscience.cdk.tools.manipulator.AtomContainerManipulator;
3233

@@ -60,12 +61,12 @@ public void testChloroButane() throws Exception {
6061
mol.addAtom(c2);
6162
mol.addAtom(c3);
6263
mol.addAtom(cl);
63-
6464
mol.addBond(new Bond(c1, c2));
6565
mol.addBond(new Bond(c2, c3));
6666
mol.addBond(new Bond(c3, cl));
67-
6867
AtomContainerManipulator.percieveAtomTypesAndConfigureAtoms(mol);
68+
CDKHydrogenAdder.getInstance(SilentChemObjectBuilder.getInstance())
69+
.addImplicitHydrogens(mol);
6970

7071
DescriptorValue v = descriptor.calculate(mol);
7172
Assert.assertEquals(0.5192, ((DoubleArrayResult) v.getValue()).get(0), 0.0001);

0 commit comments

Comments
 (0)