Skip to content

Commit 0ba8656

Browse files
committed
Updated the test - alt loc groups need not be the same size as main groups IF they are heterogenous (different PDB name).
1 parent cecf434 commit 0ba8656

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

biojava-structure/src/test/java/org/biojava/nbio/structure/TestAltLocs.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,10 @@ private void ensureAllAtomsSameAltCode(Group groupInputAltLocGroup, Group inputM
179179
return;
180180
}
181181

182-
// Check that the atom group is the same size as the alt loc group
183-
assertEquals(groupInputAltLocGroup.getAtoms().size(), inputMainGroup.getAtoms().size());
182+
// Check that the atom group is the same size as the alt loc group (as long as it's not a case of microheterogenity
183+
if (groupInputAltLocGroup.getPDBName().equals(inputMainGroup.getPDBName())){
184+
assertEquals(groupInputAltLocGroup.getAtoms().size(), inputMainGroup.getAtoms().size());
185+
}
184186
Character defaultAltLoc = null;
185187
for (Atom atom : groupInputAltLocGroup.getAtoms()) {
186188

0 commit comments

Comments
 (0)