Replace GetImplicitValence() and GetExplicitValence() with GetValence() (#7926)

This commit is contained in:
Greg Landrum
2025-01-28 21:09:03 +01:00
committed by GitHub
parent 30b94efc50
commit fa048eacc5
48 changed files with 323 additions and 268 deletions

View File

@@ -115,8 +115,10 @@ public class ChemAtomTests extends GraphMolTest {
@Test(expected=GenericRDKitException.class)
public void testExceptionHandler() {
Atom a = new Atom(6);
a.getImplicitValence();
RWMol m = new RWMol();
m.addAtom(new Atom(6));
// explicit valence hasn't been calculated, so this throws an exception
m.getAtomWithIdx(0).getValence(Atom.ValenceType.EXPLICIT);
}
public static void main(String args[]) {