- org.testng.Assert.assertEquals(sq.getEnd() - sq.getStart() + 1,
- sq.getLength(),
- "Sequence start/end doesn't match number of residues in sequence for "
- + sq.getName());
+ // FIXME: should test that all residues extracted as sequences from
+ // chains in structure have a mapping to data in the structure
+
+ for (int rs = sq.getStart(); rs < sq.getStart()
+ + sq.getLength(); rs++)
+ {
+ List<SequenceFeature> sf = sq.findFeatures(rs, rs, "RESNUM");
+ assertEquals(sf.size(), 1);
+ }