* checks that the sequence data for an alignment's dataset is non-redundant.
* Fails if there are sequences with same id, sequence, start, and.
*/
+
public static void assertDatasetIsNormalised(AlignmentI al)
{
+ assertAlignmentDatasetRefs(al, null);
+ }
+ public static void assertDatasetIsNormalised(AlignmentI al, String message)
+ {
if (al.getDataset()!=null)
{
- assertDatasetIsNormalised(al.getDataset());
+ assertDatasetIsNormalised(al.getDataset(), message);
return;
}
/*
{
continue;
}
- Assert.fail("Found similar sequences at position "+p+" and "+q+"\n"+pSeq.toString());
+ Assert.fail((message == null ? "" : message + " :")
+ + "Found similar sequences at position " + p + " and " + q
+ + "\n" + pSeq.toString());
}
}
}
assertEquals(1, startEnd[0]);
assertEquals(23, startEnd[1]);
}
+
}