Skip to content

Commit

Permalink
Also fix the new NNBond() == 0 atoms for the nonotify module
Browse files Browse the repository at this point in the history
Signed-off-by: Rajarshi  Guha <rajarshi.guha@gmail.com>
  • Loading branch information
egonw authored and rajarshi committed Jul 27, 2010
1 parent 916ab96 commit 23d9685
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/org/openscience/cdk/nonotify/NNBond.java
Expand Up @@ -41,6 +41,7 @@ public class NNBond extends Bond {

public NNBond() {
this(null, null, null, CDKConstants.STEREO_BOND_NONE);
this.atomCount = 0;
}

public NNBond(IAtom atom1, IAtom atom2) {
Expand Down
2 changes: 1 addition & 1 deletion src/test/org/openscience/cdk/nonotify/NNBondTest.java
Expand Up @@ -52,7 +52,7 @@ public IChemObject newTestObject() {
@Test
public void testNNBond() {
IBond bond = new NNBond();
Assert.assertEquals(2, bond.getAtomCount());
Assert.assertEquals(0, bond.getAtomCount());
Assert.assertNull(bond.getAtom(0));
Assert.assertNull(bond.getAtom(1));
Assert.assertNull(bond.getOrder());
Expand Down

0 comments on commit 23d9685

Please sign in to comment.