Skip to content

Commit

Permalink
Also check that there are two such R1 atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Dec 9, 2011
1 parent bd4b094 commit 962b7d2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/org/openscience/cdk/io/MDLV2000ReaderTest.java
Expand Up @@ -896,12 +896,13 @@ public void testAliasAtomNaming() throws Exception {

IAtom[] atoms = AtomContainerManipulator.getAtomArray(molecule);


int r1Count = 0;
for (IAtom atom : atoms) {
if (atom instanceof IPseudoAtom) {
Assert.assertEquals("R1", ((IPseudoAtom) atom).getLabel());
r1Count++;
}
}

Assert.assertEquals(2, r1Count);
}
}

0 comments on commit 962b7d2

Please sign in to comment.